#338F2F#338F2F
#338F2F is a mid, vivid green. Relative luminance 0.206; OKLCH L 57.5% C 0.159 H 142.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #338F2F |
|---|---|
| RGB | rgb(51, 143, 47) |
| HSL | hsl(118, 51%, 37%) |
| HSV | hsv(118, 67%, 56%) |
| CMYK | cmyk(64.3%, 0%, 67.1%, 43.9%) |
| CIE-LAB | lab(52.46, -46.35, 41.76) |
| CIE-LCH | lch(52.46, 62.38, 137.98°) |
| OKLab | oklab(57.48% -0.1261 0.0965) |
| OKLCH | oklch(57.48% 0.159 142.6) |
| XYZ | xyz(11.7001, 20.5528, 6.0393) |
| Luminance | 0.2055 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.19
Emerald Green
#028F1E
ΔE00 2.64
Irish Green
#019529
ΔE00 2.91
Kelley Green
#009337
ΔE00 3.12
True Green
#089404
ΔE00 4.15
Fern Green
#548D44
ΔE00 4.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338F2F #8B2F8F
analogous
#638F2F #338F2F #2F8F5B
triadic
#338F2F #2F338F #8F2F33
tetradic
#338F2F #2F638F #8B2F8F #8F5B2F
square
#338F2F #2F638F #8B2F8F #8F5B2F
split-complementary
#338F2F #5B2F8F #8F2F63
monochromatic
#123311 #236120 #338F2F #43BD3E #6ECE6A
Accessibility & contrast
On white
4.11
#338F2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#338F2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338F2F
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338F2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338F2F | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#928223
Deuteranopia (green-blind)
#877A38
Tritanopia (blue-blind)
#218B7B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #338f2f; /* rgb */ color: rgb(51, 143, 47); /* oklch */ color: oklch(57.5% 0.159 142.6);
Tailwind
colors: {
custom: {
50: '#76b16c',
500: '#338f2f',
950: '#000000',
},
}SCSS
$custom: #338f2f; $custom-light: #76b16c; $custom-dark: #000000;
JSON
{
"hex": "#338f2f",
"rgb": {
"r": 51,
"g": 143,
"b": 47
},
"hsl": {
"h": 117.5,
"s": 50.526,
"l": 37.255
},
"oklch": {
"l": 0.57476,
"c": 0.1588,
"h": 142.6
},
"luminance": 0.20554
}Semantic roles & 50–950 ramp
primary
#338F2F
secondary
#B265B5
accent
#4EDAD4
background
#F7FBF6
surface
#EEF6EC
border
#C9D0C7
text
#091107
muted
#7B807A