#338E2F#338E2F
#338E2F is a mid, vivid green. Relative luminance 0.203; OKLCH L 57.2% C 0.158 H 142.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #338E2F |
|---|---|
| RGB | rgb(51, 142, 47) |
| HSL | hsl(117, 50%, 37%) |
| HSV | hsv(117, 67%, 56%) |
| CMYK | cmyk(64.1%, 0%, 66.9%, 44.3%) |
| CIE-LAB | lab(52.12, -45.97, 41.39) |
| CIE-LCH | lch(52.12, 61.86, 138.00°) |
| OKLab | oklab(57.2% -0.1251 0.0958) |
| OKLCH | oklch(57.2% 0.158 142.6) |
| XYZ | xyz(11.5507, 20.2539, 5.9895) |
| Luminance | 0.2026 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.01
Emerald Green
#028F1E
ΔE00 2.67
Irish Green
#019529
ΔE00 3.16
Kelley Green
#009337
ΔE00 3.23
True Green
#089404
ΔE00 4.35
Fern Green
#548D44
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338E2F #8A2F8E
analogous
#638E2F #338E2F #2F8E5B
triadic
#338E2F #2F338E #8E2F33
tetradic
#338E2F #2F638E #8A2F8E #8E5B2F
square
#338E2F #2F638E #8A2F8E #8E5B2F
split-complementary
#338E2F #5B2F8E #8E2F63
monochromatic
#123211 #226020 #338E2F #44BC3E #6ECE6A
Accessibility & contrast
On white
4.16
#338E2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#338E2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338E2F
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338E2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338E2F | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#918123
Deuteranopia (green-blind)
#867937
Tritanopia (blue-blind)
#228A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #338e2f; /* rgb */ color: rgb(51, 142, 47); /* oklch */ color: oklch(57.2% 0.158 142.6);
Tailwind
colors: {
custom: {
50: '#76b06c',
500: '#338e2f',
950: '#000000',
},
}SCSS
$custom: #338e2f; $custom-light: #76b06c; $custom-dark: #000000;
JSON
{
"hex": "#338e2f",
"rgb": {
"r": 51,
"g": 142,
"b": 47
},
"hsl": {
"h": 117.474,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.572,
"c": 0.15753,
"h": 142.6
},
"luminance": 0.20255
}Semantic roles & 50–950 ramp
primary
#338E2F
secondary
#B164B5
accent
#4EDAD4
background
#F7FAF6
surface
#EEF5EC
border
#C9CFC7
text
#091007
muted
#7B7F7A