#337F12#337F12
#337F12 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.156 H 138.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #337F12 |
|---|---|
| RGB | rgb(51, 127, 18) |
| HSL | hsl(102, 75%, 28%) |
| HSV | hsv(102, 86%, 50%) |
| CMYK | cmyk(59.8%, 0%, 85.8%, 50.2%) |
| CIE-LAB | lab(46.88, -42.59, 46.89) |
| CIE-LCH | lch(46.88, 63.35, 132.25°) |
| OKLab | oklab(52.8% -0.1176 0.1033) |
| OKLCH | oklch(52.8% 0.156 138.7) |
| XYZ | xyz(9.0634, 15.9254, 3.1684) |
| Luminance | 0.1593 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Dark Grass Green
#388004
ΔE00 1.43
Tree Green
#2A7E19
ΔE00 1.49
Green
#008000
ΔE00 2.90
Forestgreen (CSS)
#228B22
ΔE00 4.68
Avocado
#568203
ΔE00 6.06
Emerald Green
#028F1E
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#337F12 #5E127F
analogous
#697F12 #337F12 #127F27
triadic
#337F12 #12337F #7F1233
tetradic
#337F12 #12697F #5E127F #7F2712
square
#337F12 #12697F #5E127F #7F2712
split-complementary
#337F12 #27127F #7F1269
monochromatic
#0B1B04 #1D490A #337F12 #49B51A #62E12B
Accessibility & contrast
On white
5.02
#337F12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#337F12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #337F12
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##337F12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##337F12 | 1.00 | 5.02 | 4.19 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#2B7A6C
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #337f12; /* rgb */ color: rgb(51, 127, 18); /* oklch */ color: oklch(52.8% 0.156 138.7);
Tailwind
colors: {
custom: {
50: '#75a55c',
500: '#337f12',
950: '#000000',
},
}SCSS
$custom: #337f12; $custom-light: #75a55c; $custom-dark: #000000;
JSON
{
"hex": "#337f12",
"rgb": {
"r": 51,
"g": 127,
"b": 18
},
"hsl": {
"h": 101.835,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.52801,
"c": 0.15649,
"h": 138.7
},
"luminance": 0.15926
}Semantic roles & 50–950 ramp
primary
#337F12
secondary
#8F38B5
accent
#36F2B9
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79