#12731F#12731F
#12731F is a mid, vivid green. Relative luminance 0.125; OKLCH L 48.5% C 0.147 H 144.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).
Color values
| HEX | #12731F |
|---|---|
| RGB | rgb(18, 115, 31) |
| HSL | hsl(128, 73%, 26%) |
| HSV | hsv(128, 84%, 45%) |
| CMYK | cmyk(84.3%, 0%, 73%, 54.9%) |
| CIE-LAB | lab(41.98, -44.13, 37.25) |
| CIE-LCH | lch(41.98, 57.75, 139.83°) |
| OKLab | oklab(48.54% -0.1192 0.0853) |
| OKLCH | oklch(48.54% 0.147 144.4) |
| XYZ | xyz(6.6270, 12.4882, 3.3573) |
| Luminance | 0.1249 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Darkish Green
#287C37
ΔE00 4.43
Tree Green
#2A7E19
ΔE00 4.78
Darkgreen
#006400
ΔE00 5.37
Green
#008000
ΔE00 5.67
Jungle Green
#048243
ΔE00 7.22
Dark Grass Green
#388004
ΔE00 7.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12731F #731266
analogous
#357312 #12731F #12734F
triadic
#12731F #1F1273 #731F12
tetradic
#12731F #123573 #731266 #734F12
square
#12731F #123573 #731266 #734F12
split-complementary
#12731F #4F1273 #731235
monochromatic
#041A07 #0A3E11 #12731F #1AA82D #23DD3C
Accessibility & contrast
On white
6.00
#12731F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#12731F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #12731F
6.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12731F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12731F | 1.00 | 6.00 | 3.50 | 6.00 |
| #FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#756712
Deuteranopia (green-blind)
#6B6027
Tritanopia (blue-blind)
#007062
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #12731f; /* rgb */ color: rgb(18, 115, 31); /* oklch */ color: oklch(48.5% 0.147 144.4);
Tailwind
colors: {
custom: {
50: '#649c60',
500: '#12731f',
950: '#000000',
},
}SCSS
$custom: #12731f; $custom-light: #649c60; $custom-dark: #000000;
JSON
{
"hex": "#12731f",
"rgb": {
"r": 18,
"g": 115,
"b": 31
},
"hsl": {
"h": 128.041,
"s": 72.932,
"l": 26.078
},
"oklch": {
"l": 0.48536,
"c": 0.14653,
"h": 144.4
},
"luminance": 0.12489
}Semantic roles & 50–950 ramp
primary
#12731F
secondary
#AA379A
accent
#38D7F0
background
#F6F9F5
surface
#EBF2EA
border
#C6CCC6
text
#060E05
muted
#7A7E79