#0C5212#0C5212
#0C5212 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.3% C 0.116 H 143.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).
Color values
| HEX | #0C5212 |
|---|---|
| RGB | rgb(12, 82, 18) |
| HSL | hsl(125, 74%, 18%) |
| HSV | hsv(125, 85%, 32%) |
| CMYK | cmyk(85.4%, 0%, 78%, 67.8%) |
| CIE-LAB | lab(29.80, -34.67, 30.11) |
| CIE-LCH | lch(29.80, 45.92, 139.03°) |
| OKLab | oklab(38.35% -0.0938 0.0686) |
| OKLCH | oklch(38.35% 0.116 143.8) |
| XYZ | xyz(3.2779, 6.1560, 1.5876) |
| Luminance | 0.0616 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forest
#0B5509
ΔE00 1.88
Deep Green
#02590F
ΔE00 2.56
Bottle Green
#044A05
ΔE00 2.64
Darkgreen (survey)
#054907
ΔE00 2.82
British Racing Green
#05480D
ΔE00 3.13
Forest Green (survey)
#06470C
ΔE00 3.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C5212 #520C4C
analogous
#29520C #0C5212 #0C5235
triadic
#0C5212 #120C52 #52120C
tetradic
#0C5212 #0C2952 #520C4C #52350C
square
#0C5212 #0C2952 #520C4C #52350C
split-complementary
#0C5212 #350C52 #520C29
monochromatic
#041B06 #041D06 #0C5212 #14871E #1CBD29
Accessibility & contrast
On white
9.41
#0C5212 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#0C5212 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C5212
9.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C5212 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C5212 | 1.00 | 9.41 | 2.23 | 9.41 |
| #FFFFFF | 9.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544908
Deuteranopia (green-blind)
#4C4419
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #0c5212; /* rgb */ color: rgb(12, 82, 18); /* oklch */ color: oklch(38.3% 0.116 143.8);
Tailwind
colors: {
custom: {
50: '#5a8354',
500: '#0c5212',
950: '#000000',
},
}SCSS
$custom: #0c5212; $custom-light: #5a8354; $custom-dark: #000000;
JSON
{
"hex": "#0c5212",
"rgb": {
"r": 12,
"g": 82,
"b": 18
},
"hsl": {
"h": 125.143,
"s": 74.468,
"l": 18.431
},
"oklch": {
"l": 0.38347,
"c": 0.11621,
"h": 143.8
},
"luminance": 0.06156
}Semantic roles & 50–950 ramp
primary
#0C5212
secondary
#8D2C85
accent
#37E1F1
background
#F5F8F5
surface
#E9EFE8
border
#C5CAC4
text
#040B03
muted
#797C78