#0C5018#0C5018
#0C5018 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.8% C 0.109 H 145.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #0C5018 |
|---|---|
| RGB | rgb(12, 80, 24) |
| HSL | hsl(131, 74%, 18%) |
| HSV | hsv(131, 85%, 31%) |
| CMYK | cmyk(85%, 0%, 70%, 68.6%) |
| CIE-LAB | lab(29.11, -33.25, 26.53) |
| CIE-LCH | lch(29.11, 42.54, 141.41°) |
| OKLab | oklab(37.79% -0.0896 0.0618) |
| OKLCH | oklch(37.79% 0.109 145.4) |
| XYZ | xyz(3.1849, 5.8811, 1.8313) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
British Racing Green
#05480D
ΔE00 2.61
Forest Green (survey)
#06470C
ΔE00 2.92
Darkgreen (survey)
#054907
ΔE00 2.92
Bottle Green
#044A05
ΔE00 3.02
Forest
#0B5509
ΔE00 3.45
Pine Green
#0A481E
ΔE00 3.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C5018 #500C44
analogous
#22500C #0C5018 #0C503A
triadic
#0C5018 #180C50 #50180C
tetradic
#0C5018 #0C2250 #500C44 #503A0C
square
#0C5018 #0C2250 #500C44 #503A0C
split-complementary
#0C5018 #3A0C50 #500C22
monochromatic
#041B08 #041B08 #0C5018 #148528 #1CBA38
Accessibility & contrast
On white
9.65
#0C5018 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#0C5018 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C5018
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C5018 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C5018 | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#514811
Deuteranopia (green-blind)
#4A431D
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #0c5018; /* rgb */ color: rgb(12, 80, 24); /* oklch */ color: oklch(37.8% 0.109 145.4);
Tailwind
colors: {
custom: {
50: '#598257',
500: '#0c5018',
950: '#000000',
},
}SCSS
$custom: #0c5018; $custom-light: #598257; $custom-dark: #000000;
JSON
{
"hex": "#0c5018",
"rgb": {
"r": 12,
"g": 80,
"b": 24
},
"hsl": {
"h": 130.588,
"s": 73.913,
"l": 18.039
},
"oklch": {
"l": 0.3779,
"c": 0.10888,
"h": 145.4
},
"luminance": 0.05881
}Semantic roles & 50–950 ramp
primary
#0C5018
secondary
#8B2C7B
accent
#37D0F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78