#338F2D#338F2D
#338F2D is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.5% C 0.160 H 142.3°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #338F2D |
|---|---|
| RGB | rgb(51, 143, 45) |
| HSL | hsl(116, 52%, 37%) |
| HSV | hsv(116, 69%, 56%) |
| CMYK | cmyk(64.3%, 0%, 68.5%, 43.9%) |
| CIE-LAB | lab(52.44, -46.55, 42.61) |
| CIE-LCH | lch(52.44, 63.11, 137.53°) |
| OKLab | oklab(57.46% -0.1267 0.0981) |
| OKLCH | oklch(57.46% 0.16 142.3) |
| XYZ | xyz(11.6607, 20.5371, 5.8317) |
| Luminance | 0.2054 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.08
Emerald Green
#028F1E
ΔE00 2.52
Irish Green
#019529
ΔE00 2.89
Kelley Green
#009337
ΔE00 3.29
True Green
#089404
ΔE00 3.93
Fern Green
#548D44
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338F2D #892D8F
analogous
#648F2D #338F2D #2D8F58
triadic
#338F2D #2D338F #8F2D33
tetradic
#338F2D #2D648F #892D8F #8F582D
square
#338F2D #2D648F #892D8F #8F582D
split-complementary
#338F2D #582D8F #8F2D64
monochromatic
#123210 #22601E #338F2D #44BE3C #6ECF67
Accessibility & contrast
On white
4.11
#338F2D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#338F2D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338F2D
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338F2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338F2D | 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)
#928220
Deuteranopia (green-blind)
#877A36
Tritanopia (blue-blind)
#228B7B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #338f2d; /* rgb */ color: rgb(51, 143, 45); /* oklch */ color: oklch(57.5% 0.160 142.3);
Tailwind
colors: {
custom: {
50: '#77b16b',
500: '#338f2d',
950: '#000000',
},
}SCSS
$custom: #338f2d; $custom-light: #77b16b; $custom-dark: #000000;
JSON
{
"hex": "#338f2d",
"rgb": {
"r": 51,
"g": 143,
"b": 45
},
"hsl": {
"h": 116.327,
"s": 52.128,
"l": 36.863
},
"oklch": {
"l": 0.57456,
"c": 0.16027,
"h": 142.3
},
"luminance": 0.20538
}Semantic roles & 50–950 ramp
primary
#338F2D
secondary
#B162B6
accent
#4CDCD3
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A