#338E2D#338E2D
#338E2D is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.159 H 142.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #338E2D |
|---|---|
| RGB | rgb(51, 142, 45) |
| HSL | hsl(116, 52%, 37%) |
| HSV | hsv(116, 68%, 56%) |
| CMYK | cmyk(64.1%, 0%, 68.3%, 44.3%) |
| CIE-LAB | lab(52.11, -46.18, 42.25) |
| CIE-LCH | lch(52.11, 62.59, 137.54°) |
| OKLab | oklab(57.18% -0.1257 0.0973) |
| OKLCH | oklch(57.18% 0.159 142.3) |
| XYZ | xyz(11.5113, 20.2382, 5.7818) |
| Luminance | 0.2024 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.88
Emerald Green
#028F1E
ΔE00 2.55
Irish Green
#019529
ΔE00 3.13
Kelley Green
#009337
ΔE00 3.39
True Green
#089404
ΔE00 4.13
Fern Green
#548D44
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338E2D #882D8E
analogous
#648E2D #338E2D #2D8E58
triadic
#338E2D #2D338E #8E2D33
tetradic
#338E2D #2D648E #882D8E #8E582D
square
#338E2D #2D648E #882D8E #8E582D
split-complementary
#338E2D #582D8E #8E2D64
monochromatic
#123110 #22601E #338E2D #44BC3C #6DCF67
Accessibility & contrast
On white
4.16
#338E2D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#338E2D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338E2D
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338E2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338E2D | 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)
#918120
Deuteranopia (green-blind)
#867936
Tritanopia (blue-blind)
#228A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #338e2d; /* rgb */ color: rgb(51, 142, 45); /* oklch */ color: oklch(57.2% 0.159 142.3);
Tailwind
colors: {
custom: {
50: '#76b06b',
500: '#338e2d',
950: '#000000',
},
}SCSS
$custom: #338e2d; $custom-light: #76b06b; $custom-dark: #000000;
JSON
{
"hex": "#338e2d",
"rgb": {
"r": 51,
"g": 142,
"b": 45
},
"hsl": {
"h": 116.289,
"s": 51.872,
"l": 36.667
},
"oklch": {
"l": 0.5718,
"c": 0.15902,
"h": 142.3
},
"luminance": 0.20239
}Semantic roles & 50–950 ramp
primary
#338E2D
secondary
#B061B5
accent
#4CDBD2
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091107
muted
#7B807A