#0C5012#0C5012
#0C5012 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.7% C 0.114 H 143.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).
Color values
| HEX | #0C5012 |
|---|---|
| RGB | rgb(12, 80, 18) |
| HSL | hsl(125, 74%, 18%) |
| HSV | hsv(125, 85%, 31%) |
| CMYK | cmyk(85%, 0%, 77.5%, 68.6%) |
| CIE-LAB | lab(29.05, -33.94, 29.33) |
| CIE-LCH | lch(29.05, 44.86, 139.17°) |
| OKLab | oklab(37.72% -0.0918 0.0669) |
| OKLCH | oklch(37.72% 0.114 143.9) |
| XYZ | xyz(3.1293, 5.8588, 1.5381) |
| Luminance | 0.0586 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Bottle Green
#044A05
ΔE00 2.21
Darkgreen (survey)
#054907
ΔE00 2.29
Forest
#0B5509
ΔE00 2.45
British Racing Green
#05480D
ΔE00 2.48
Forest Green (survey)
#06470C
ΔE00 2.77
Deep Green
#02590F
ΔE00 3.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C5012 #500C4A
analogous
#28500C #0C5012 #0C5034
triadic
#0C5012 #120C50 #50120C
tetradic
#0C5012 #0C2850 #500C4A #50340C
square
#0C5012 #0C2850 #500C4A #50340C
split-complementary
#0C5012 #340C50 #500C28
monochromatic
#041B06 #041B06 #0C5012 #14851E #1CBA2A
Accessibility & contrast
On white
9.67
#0C5012 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#0C5012 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C5012
9.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C5012 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C5012 | 1.00 | 9.67 | 2.17 | 9.67 |
| #FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#524808
Deuteranopia (green-blind)
#4A4218
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #0c5012; /* rgb */ color: rgb(12, 80, 18); /* oklch */ color: oklch(37.7% 0.114 143.9);
Tailwind
colors: {
custom: {
50: '#598254',
500: '#0c5012',
950: '#000000',
},
}SCSS
$custom: #0c5012; $custom-light: #598254; $custom-dark: #000000;
JSON
{
"hex": "#0c5012",
"rgb": {
"r": 12,
"g": 80,
"b": 18
},
"hsl": {
"h": 125.294,
"s": 73.913,
"l": 18.039
},
"oklch": {
"l": 0.37725,
"c": 0.11363,
"h": 143.9
},
"luminance": 0.05859
}Semantic roles & 50–950 ramp
primary
#0C5012
secondary
#8B2C83
accent
#37E0F1
background
#F5F8F4
surface
#E9EFE8
border
#C5CAC4
text
#040A03
muted
#797C78