#0C5118#0C5118
#0C5118 is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.1% C 0.110 H 145.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #0C5118 |
|---|---|
| RGB | rgb(12, 81, 24) |
| HSL | hsl(130, 74%, 18%) |
| HSV | hsv(130, 85%, 32%) |
| CMYK | cmyk(85.2%, 0%, 70.4%, 68.2%) |
| CIE-LAB | lab(29.48, -33.62, 26.95) |
| CIE-LCH | lch(29.48, 43.09, 141.28°) |
| OKLab | oklab(38.1% -0.0907 0.0627) |
| OKLCH | oklch(38.1% 0.11 145.3) |
| XYZ | xyz(3.2587, 6.0286, 1.8559) |
| Luminance | 0.0603 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
British Racing Green
#05480D
ΔE00 2.86
Darkgreen (survey)
#054907
ΔE00 3.06
Bottle Green
#044A05
ΔE00 3.11
Forest Green (survey)
#06470C
ΔE00 3.17
Forest
#0B5509
ΔE00 3.18
Deep Green
#02590F
ΔE00 3.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C5118 #510C45
analogous
#22510C #0C5118 #0C513A
triadic
#0C5118 #180C51 #51180C
tetradic
#0C5118 #0C2251 #510C45 #513A0C
square
#0C5118 #0C2251 #510C45 #513A0C
split-complementary
#0C5118 #3A0C51 #510C22
monochromatic
#041B08 #041C08 #0C5118 #148628 #1CBC38
Accessibility & contrast
On white
9.52
#0C5118 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#0C5118 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C5118
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C5118 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C5118 | 1.00 | 9.52 | 2.21 | 9.52 |
| #FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#524911
Deuteranopia (green-blind)
#4B431D
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #0c5118; /* rgb */ color: rgb(12, 81, 24); /* oklch */ color: oklch(38.1% 0.110 145.3);
Tailwind
colors: {
custom: {
50: '#598358',
500: '#0c5118',
950: '#000000',
},
}SCSS
$custom: #0c5118; $custom-light: #598358; $custom-dark: #000000;
JSON
{
"hex": "#0c5118",
"rgb": {
"r": 12,
"g": 81,
"b": 24
},
"hsl": {
"h": 130.435,
"s": 74.194,
"l": 18.235
},
"oklch": {
"l": 0.38101,
"c": 0.11023,
"h": 145.3
},
"luminance": 0.06029
}Semantic roles & 50–950 ramp
primary
#0C5118
secondary
#8C2C7C
accent
#37D1F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78