#337E12#337E12
#337E12 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.155 H 138.6°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #337E12 |
|---|---|
| RGB | rgb(51, 126, 18) |
| HSL | hsl(102, 75%, 28%) |
| HSV | hsv(102, 86%, 49%) |
| CMYK | cmyk(59.5%, 0%, 85.7%, 50.6%) |
| CIE-LAB | lab(46.54, -42.21, 46.58) |
| CIE-LCH | lch(46.54, 62.86, 132.18°) |
| OKLab | oklab(52.52% -0.1166 0.1026) |
| OKLCH | oklch(52.52% 0.155 138.6) |
| XYZ | xyz(8.9349, 15.6684, 3.1256) |
| Luminance | 0.1567 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 1.41
Dark Grass Green
#388004
ΔE00 1.59
Green
#008000
ΔE00 2.96
Forestgreen (CSS)
#228B22
ΔE00 4.99
Avocado
#568203
ΔE00 6.16
Darkish Green
#287C37
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#337E12 #5D127E
analogous
#697E12 #337E12 #127E27
triadic
#337E12 #12337E #7E1233
tetradic
#337E12 #12697E #5D127E #7E2712
square
#337E12 #12697E #5D127E #7E2712
split-complementary
#337E12 #27127E #7E1269
monochromatic
#0B1B04 #1D480A #337E12 #49B41A #62E12A
Accessibility & contrast
On white
5.08
#337E12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#337E12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #337E12
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##337E12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##337E12 | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#796C20
Tritanopia (blue-blind)
#2B796B
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #337e12; /* rgb */ color: rgb(51, 126, 18); /* oklch */ color: oklch(52.5% 0.155 138.6);
Tailwind
colors: {
custom: {
50: '#75a45b',
500: '#337e12',
950: '#000000',
},
}SCSS
$custom: #337e12; $custom-light: #75a45b; $custom-dark: #000000;
JSON
{
"hex": "#337e12",
"rgb": {
"r": 51,
"g": 126,
"b": 18
},
"hsl": {
"h": 101.667,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.5252,
"c": 0.1553,
"h": 138.6
},
"luminance": 0.15669
}Semantic roles & 50–950 ramp
primary
#337E12
secondary
#8E38B4
accent
#36F2B8
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#090F04
muted
#7B7F79