#338F1E#338F1E
#338F1E is a mid, vivid green. Relative luminance 0.204; OKLCH L 57.3% C 0.170 H 140.5°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #338F1E |
|---|---|
| RGB | rgb(51, 143, 30) |
| HSL | hsl(109, 65%, 34%) |
| HSV | hsv(109, 79%, 56%) |
| CMYK | cmyk(64.3%, 0%, 79%, 43.9%) |
| CIE-LAB | lab(52.33, -47.80, 48.30) |
| CIE-LCH | lch(52.33, 67.96, 134.70°) |
| OKLab | oklab(57.33% -0.131 0.108) |
| OKLCH | oklch(57.33% 0.17 140.5) |
| XYZ | xyz(11.4215, 20.4414, 4.5717) |
| Luminance | 0.2044 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.32
Emerald Green
#028F1E
ΔE00 2.54
True Green
#089404
ΔE00 2.78
Irish Green
#019529
ΔE00 3.41
Kelley Green
#009337
ΔE00 4.69
Grass Green
#3F9B0B
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338F1E #7A1E8F
analogous
#6C8F1E #338F1E #1E8F42
triadic
#338F1E #1E338F #8F1E33
tetradic
#338F1E #1E6C8F #7A1E8F #8F421E
square
#338F1E #1E6C8F #7A1E8F #8F421E
split-complementary
#338F1E #421E8F #8F1E6C
monochromatic
#0F2A09 #215C13 #338F1E #45C229 #68DA4E
Accessibility & contrast
On white
4.13
#338F1E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.09
#338F1E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338F1E
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338F1E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338F1E | 1.00 | 4.13 | 5.09 | 5.09 |
| #FFFFFF | 4.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.09 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.09 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#938101
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#258A7A
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #338f1e; /* rgb */ color: rgb(51, 143, 30); /* oklch */ color: oklch(57.3% 0.170 140.5);
Tailwind
colors: {
custom: {
50: '#77b163',
500: '#338f1e',
950: '#000000',
},
}SCSS
$custom: #338f1e; $custom-light: #77b163; $custom-dark: #000000;
JSON
{
"hex": "#338f1e",
"rgb": {
"r": 51,
"g": 143,
"b": 30
},
"hsl": {
"h": 108.85,
"s": 65.318,
"l": 33.922
},
"oklch": {
"l": 0.57334,
"c": 0.16974,
"h": 140.5
},
"luminance": 0.20442
}Semantic roles & 50–950 ramp
primary
#338F1E
secondary
#A84CBC
accent
#40E8C9
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1106
muted
#7C807A