#0C512A#0C512A
#0C512A is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.093 H 152.7°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #0C512A |
|---|---|
| RGB | rgb(12, 81, 42) |
| HSL | hsl(146, 74%, 18%) |
| HSV | hsv(146, 85%, 32%) |
| CMYK | cmyk(85.2%, 0%, 48.1%, 68.2%) |
| CIE-LAB | lab(29.74, -30.61, 17.21) |
| CIE-LCH | lch(29.74, 35.12, 150.65°) |
| OKLab | oklab(38.39% -0.0823 0.0425) |
| OKLCH | oklch(38.39% 0.093 152.7) |
| XYZ | xyz(3.5116, 6.1298, 3.1881) |
| Luminance | 0.0613 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Pine Green
#0A481E
ΔE00 3.16
Evergreen
#05472A
ΔE00 4.05
Spruce
#0A5F38
ΔE00 4.58
Pine
#2B5D34
ΔE00 4.81
Forest Green
#2D5A27
ΔE00 5.76
British Racing Green
#05480D
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C512A #510C33
analogous
#10510C #0C512A #0C514C
triadic
#0C512A #2A0C51 #512A0C
tetradic
#0C512A #0C1051 #510C33 #514C0C
square
#0C512A #0C1051 #510C33 #514C0C
split-complementary
#0C512A #4C0C51 #510C10
monochromatic
#041B0E #041C0E #0C512A #148646 #1CBC61
Accessibility & contrast
On white
9.43
#0C512A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#0C512A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C512A
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C512A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C512A | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#514927
Deuteranopia (green-blind)
#49442D
Tritanopia (blue-blind)
#005048
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #0c512a; /* rgb */ color: rgb(12, 81, 42); /* oklch */ color: oklch(38.4% 0.093 152.7);
Tailwind
colors: {
custom: {
50: '#588364',
500: '#0c512a',
950: '#000000',
},
}SCSS
$custom: #0c512a; $custom-light: #588364; $custom-dark: #000000;
JSON
{
"hex": "#0c512a",
"rgb": {
"r": 12,
"g": 81,
"b": 42
},
"hsl": {
"h": 146.087,
"s": 74.194,
"l": 18.235
},
"oklch": {
"l": 0.38393,
"c": 0.09261,
"h": 152.7
},
"luminance": 0.0613
}Semantic roles & 50–950 ramp
primary
#0C512A
secondary
#8C2C63
accent
#37A0F1
background
#F5F8F6
surface
#E9EFEB
border
#C5CAC6
text
#040A05
muted
#797C7A