#398418#398418
#398418 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.5% C 0.157 H 138.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #398418 |
|---|---|
| RGB | rgb(57, 132, 24) |
| HSL | hsl(102, 69%, 31%) |
| HSV | hsv(102, 82%, 52%) |
| CMYK | cmyk(56.8%, 0%, 81.8%, 48.2%) |
| CIE-LAB | lab(48.81, -42.49, 46.97) |
| CIE-LCH | lch(48.81, 63.34, 132.13°) |
| OKLab | oklab(54.46% -0.1174 0.1042) |
| OKLCH | oklch(54.46% 0.157 138.4) |
| XYZ | xyz(10.1031, 17.4375, 3.6974) |
| Luminance | 0.1744 (WCAG relative) |
| Temperature | warm |
| Family | green |
Closest named colors
Dark Grass Green
#388004
ΔE00 1.94
Tree Green
#2A7E19
ΔE00 2.86
Forestgreen (CSS)
#228B22
ΔE00 3.43
Green
#008000
ΔE00 3.83
Emerald Green
#028F1E
ΔE00 4.92
Avocado
#568203
ΔE00 5.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#398418 #631884
analogous
#6F8418 #398418 #18842D
triadic
#398418 #183984 #841839
tetradic
#398418 #186F84 #631884 #842D18
square
#398418 #186F84 #631884 #842D18
split-complementary
#398418 #2D1884 #84186F
monochromatic
#0C1C05 #23500F #398418 #4FB821 #6CDB3B
Accessibility & contrast
On white
4.68
#398418 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.49
#398418 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #398418
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##398418 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##398418 | 1.00 | 4.68 | 4.49 | 4.68 |
| #FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#7F7225
Tritanopia (blue-blind)
#327F70
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #398418; /* rgb */ color: rgb(57, 132, 24); /* oklch */ color: oklch(54.5% 0.157 138.4);
Tailwind
colors: {
custom: {
50: '#78a85f',
500: '#398418',
950: '#000000',
},
}SCSS
$custom: #398418; $custom-light: #78a85f; $custom-dark: #000000;
JSON
{
"hex": "#398418",
"rgb": {
"r": 57,
"g": 132,
"b": 24
},
"hsl": {
"h": 101.667,
"s": 69.231,
"l": 30.588
},
"oklch": {
"l": 0.54464,
"c": 0.15701,
"h": 138.4
},
"luminance": 0.17438
}Semantic roles & 50–950 ramp
primary
#398418
secondary
#9340B8
accent
#3CECB6
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79