#337818#337818
#337818 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.9% C 0.145 H 138.7°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).
Color values
| HEX | #337818 |
|---|---|
| RGB | rgb(51, 120, 24) |
| HSL | hsl(103, 67%, 28%) |
| HSV | hsv(103, 80%, 47%) |
| CMYK | cmyk(57.5%, 0%, 80%, 52.9%) |
| CIE-LAB | lab(44.52, -39.52, 42.82) |
| CIE-LCH | lch(44.52, 58.27, 132.71°) |
| OKLab | oklab(50.87% -0.109 0.0956) |
| OKLCH | oklch(50.87% 0.145 138.7) |
| XYZ | xyz(8.2463, 14.2020, 3.1707) |
| Luminance | 0.1420 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Tree Green
#2A7E19
ΔE00 2.30
Dark Grass Green
#388004
ΔE00 3.63
Green
#008000
ΔE00 4.15
Darkish Green
#287C37
ΔE00 5.40
Forestgreen (CSS)
#228B22
ΔE00 6.84
Avocado
#568203
ΔE00 7.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#337818 #5D1878
analogous
#637818 #337818 #18782D
triadic
#337818 #183378 #781833
tetradic
#337818 #186378 #5D1878 #782D18
square
#337818 #186378 #5D1878 #782D18
split-complementary
#337818 #2D1878 #781863
monochromatic
#0B1A05 #1D450E #337818 #49AB22 #62D634
Accessibility & contrast
On white
5.47
#337818 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.84
#337818 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #337818
5.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##337818 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##337818 | 1.00 | 5.47 | 3.84 | 5.47 |
| #FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#736723
Tritanopia (blue-blind)
#2C7466
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #337818; /* rgb */ color: rgb(51, 120, 24); /* oklch */ color: oklch(50.9% 0.145 138.7);
Tailwind
colors: {
custom: {
50: '#73a05d',
500: '#337818',
950: '#000000',
},
}SCSS
$custom: #337818; $custom-light: #73a05d; $custom-dark: #000000;
JSON
{
"hex": "#337818",
"rgb": {
"r": 51,
"g": 120,
"b": 24
},
"hsl": {
"h": 103.125,
"s": 66.667,
"l": 28.235
},
"oklch": {
"l": 0.50866,
"c": 0.14503,
"h": 138.7
},
"luminance": 0.14203
}Semantic roles & 50–950 ramp
primary
#337818
secondary
#8E3FAD
accent
#3EEAB9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090F05
muted
#7B7E79