#338D2D#338D2D
#338D2D is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.9% C 0.158 H 142.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #338D2D |
|---|---|
| RGB | rgb(51, 141, 45) |
| HSL | hsl(116, 52%, 36%) |
| HSV | hsv(116, 68%, 55%) |
| CMYK | cmyk(63.8%, 0%, 68.1%, 44.7%) |
| CIE-LAB | lab(51.77, -45.80, 41.89) |
| CIE-LCH | lch(51.77, 62.07, 137.56°) |
| OKLab | oklab(56.9% -0.1247 0.0966) |
| OKLCH | oklch(56.9% 0.158 142.3) |
| XYZ | xyz(11.3632, 19.9419, 5.7325) |
| Luminance | 0.1994 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.72
Emerald Green
#028F1E
ΔE00 2.62
Irish Green
#019529
ΔE00 3.40
Kelley Green
#009337
ΔE00 3.53
True Green
#089404
ΔE00 4.36
Fern Green
#548D44
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338D2D #872D8D
analogous
#638D2D #338D2D #2D8D57
triadic
#338D2D #2D338D #8D2D33
tetradic
#338D2D #2D638D #872D8D #8D572D
square
#338D2D #2D638D #872D8D #8D572D
split-complementary
#338D2D #572D8D #8D2D63
monochromatic
#11300F #225F1E #338D2D #44BB3C #6DCE66
Accessibility & contrast
On white
4.21
#338D2D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#338D2D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338D2D
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338D2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338D2D | 1.00 | 4.21 | 4.99 | 4.99 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#908020
Deuteranopia (green-blind)
#857936
Tritanopia (blue-blind)
#238979
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #338d2d; /* rgb */ color: rgb(51, 141, 45); /* oklch */ color: oklch(56.9% 0.158 142.3);
Tailwind
colors: {
custom: {
50: '#76af6b',
500: '#338d2d',
950: '#000000',
},
}SCSS
$custom: #338d2d; $custom-light: #76af6b; $custom-dark: #000000;
JSON
{
"hex": "#338d2d",
"rgb": {
"r": 51,
"g": 141,
"b": 45
},
"hsl": {
"h": 116.25,
"s": 51.613,
"l": 36.471
},
"oklch": {
"l": 0.56904,
"c": 0.15774,
"h": 142.3
},
"luminance": 0.19943
}Semantic roles & 50–950 ramp
primary
#338D2D
secondary
#B061B5
accent
#4DDBD2
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A