#338C2F#338C2F
#338C2F is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.6% C 0.155 H 142.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #338C2F |
|---|---|
| RGB | rgb(51, 140, 47) |
| HSL | hsl(117, 50%, 37%) |
| HSV | hsv(117, 66%, 55%) |
| CMYK | cmyk(63.6%, 0%, 66.4%, 45.1%) |
| CIE-LAB | lab(51.46, -45.22, 40.66) |
| CIE-LCH | lch(51.46, 60.81, 138.04°) |
| OKLab | oklab(56.65% -0.123 0.0942) |
| OKLCH | oklch(56.65% 0.155 142.6) |
| XYZ | xyz(11.2558, 19.6641, 5.8912) |
| Luminance | 0.1966 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.81
Emerald Green
#028F1E
ΔE00 2.89
Kelley Green
#009337
ΔE00 3.56
Irish Green
#019529
ΔE00 3.71
Fern Green
#548D44
ΔE00 4.62
True Green
#089404
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338C2F #882F8C
analogous
#628C2F #338C2F #2F8C5A
triadic
#338C2F #2F338C #8C2F33
tetradic
#338C2F #2F628C #882F8C #8C5A2F
square
#338C2F #2F628C #882F8C #8C5A2F
split-complementary
#338C2F #5A2F8C #8C2F62
monochromatic
#123010 #225E20 #338C2F #44BA3E #6DCD69
Accessibility & contrast
On white
4.26
#338C2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#338C2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338C2F
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338C2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338C2F | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7F23
Deuteranopia (green-blind)
#847837
Tritanopia (blue-blind)
#228879
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #338c2f; /* rgb */ color: rgb(51, 140, 47); /* oklch */ color: oklch(56.6% 0.155 142.6);
Tailwind
colors: {
custom: {
50: '#76ae6c',
500: '#338c2f',
950: '#000000',
},
}SCSS
$custom: #338c2f; $custom-light: #76ae6c; $custom-dark: #000000;
JSON
{
"hex": "#338c2f",
"rgb": {
"r": 51,
"g": 140,
"b": 47
},
"hsl": {
"h": 117.419,
"s": 49.733,
"l": 36.667
},
"oklch": {
"l": 0.56648,
"c": 0.15496,
"h": 142.6
},
"luminance": 0.19665
}Semantic roles & 50–950 ramp
primary
#338C2F
secondary
#B063B4
accent
#4FD9D3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A