#338D2E#338D2E
#338D2E is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.9% C 0.157 H 142.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #338D2E |
|---|---|
| RGB | rgb(51, 141, 46) |
| HSL | hsl(117, 51%, 37%) |
| HSV | hsv(117, 67%, 55%) |
| CMYK | cmyk(63.8%, 0%, 67.4%, 44.7%) |
| CIE-LAB | lab(51.78, -45.70, 41.46) |
| CIE-LCH | lch(51.78, 61.70, 137.79°) |
| OKLab | oklab(56.91% -0.1244 0.0958) |
| OKLCH | oklch(56.91% 0.157 142.4) |
| XYZ | xyz(11.3826, 19.9497, 5.8351) |
| Luminance | 0.1995 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.80
Emerald Green
#028F1E
ΔE00 2.69
Irish Green
#019529
ΔE00 3.41
Kelley Green
#009337
ΔE00 3.45
True Green
#089404
ΔE00 4.46
Fern Green
#548D44
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338D2E #882E8D
analogous
#638D2E #338D2E #2E8D59
triadic
#338D2E #2E338D #8D2E33
tetradic
#338D2E #2E638D #882E8D #8D592E
square
#338D2E #2E638D #882E8D #8D592E
split-complementary
#338D2E #592E8D #8D2E63
monochromatic
#123110 #225F1F #338D2E #44BB3D #6DCE68
Accessibility & contrast
On white
4.21
#338D2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#338D2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338D2E
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338D2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338D2E | 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)
#908022
Deuteranopia (green-blind)
#857936
Tritanopia (blue-blind)
#228979
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #338d2e; /* rgb */ color: rgb(51, 141, 46); /* oklch */ color: oklch(56.9% 0.157 142.4);
Tailwind
colors: {
custom: {
50: '#76af6b',
500: '#338d2e',
950: '#000000',
},
}SCSS
$custom: #338d2e; $custom-light: #76af6b; $custom-dark: #000000;
JSON
{
"hex": "#338d2e",
"rgb": {
"r": 51,
"g": 141,
"b": 46
},
"hsl": {
"h": 116.842,
"s": 50.802,
"l": 36.667
},
"oklch": {
"l": 0.56914,
"c": 0.15701,
"h": 142.4
},
"luminance": 0.19951
}Semantic roles & 50–950 ramp
primary
#338D2E
secondary
#B062B5
accent
#4EDAD3
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A