#0C7C31 color
The hex color #0C7C31 is a dark, vivid green.
In the RGB color model it is made of 4.7% red, 48.6% green and 19.2% blue (12, 124, 49).
Its hue angle is 140°, with 82% saturation and 27% lightness. For print, the CMYK equivalent is 90% cyan, 0% magenta, 60% yellow and 51% black.
The closest named color is Pharmaceutical Green (#087E34), a difference of 0.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 5.33:1).
#0C7C31 color codes
| HEX | #0C7C31 | |
|---|---|---|
| RGB | rgb(12, 124, 49) | |
| RGB percent | rgb(4.7%, 48.6%, 19.2%) | |
| HSL | hsl(140, 82%, 27%) | |
| HSV / HSB | hsv(140, 90%, 49%) | |
| CMYK | cmyk(90%, 0%, 60%, 51%) | |
| CIE LAB | lab(45.24, -45.64, 32.43) | |
| CIE LCH | lch(45.24, 55.99, 144.6) | |
| CIE XYZ | xyz(7.913, 14.714, 5.328) | |
| Decimal | 818225 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #0C7C31, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #0C7C31 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 3.94:1 | Fail | Fail | Pass |
| Sample text | 5.33:1 | Pass | Fail | Pass |
| #0C7C31 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 5.33:1 | Pass | Fail | Pass |
| Sample text | 3.94:1 | Fail | Fail | Pass |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #0C7C31 looks to people with the most common types of color vision deficiency.
#7d7029Protanopia
no red cones#726837Deuteranopia
no green cones#00796cTritanopia
no blue cones#6b6b6bAchromatopsia
no color vision
CSS examples
.background { background-color: #0c7c31; }
.text { color: #0c7c31; }
.border { border: 2px solid #0c7c31; }
.transparent { background-color: rgb(12 124 49 / 50%); }
.gradient { background: linear-gradient(to right, #0c7c31, #0c7c69); }
Similar colors
#087e34Pharmaceutical Green#007733Forestial#2e7d32Lush Paradise#077f1bPoblano#008833Broccoli Paradise#3c773cCucumber Queen#007844Gale of the Wind#166d29Enchanted Glen
Closest common color name: Green.
Questions
- What color is #0C7C31?
- #0C7C31 is a dark, vivid green, closest to the named color Pharmaceutical Green. It belongs to the green family of colors.
- What is the RGB value of #0C7C31?
- The RGB value is 12, 124, 49: 12 red, 124 green and 49 blue on a 0 to 255 scale.
- What is the complementary color of #0C7C31?
- The complementary color is #7C0C57, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #0C7C31?
- White text. Black text has a contrast ratio of 3.94:1 and white text 5.33:1. WCAG asks for at least 4.5:1 for normal text.