#338B2E#338B2E
#338B2E is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.154 H 142.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #338B2E |
|---|---|
| RGB | rgb(51, 139, 46) |
| HSL | hsl(117, 50%, 36%) |
| HSV | hsv(117, 67%, 55%) |
| CMYK | cmyk(63.3%, 0%, 66.9%, 45.5%) |
| CIE-LAB | lab(51.11, -44.95, 40.73) |
| CIE-LCH | lch(51.11, 60.65, 137.82°) |
| OKLab | oklab(56.36% -0.1224 0.0942) |
| OKLCH | oklch(56.36% 0.154 142.4) |
| XYZ | xyz(11.0904, 19.3652, 5.7377) |
| Luminance | 0.1937 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.71
Emerald Green
#028F1E
ΔE00 2.98
Kelley Green
#009337
ΔE00 3.82
Irish Green
#019529
ΔE00 3.99
Fern Green
#548D44
ΔE00 4.71
True Green
#089404
ΔE00 4.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338B2E #862E8B
analogous
#628B2E #338B2E #2E8B58
triadic
#338B2E #2E338B #8B2E33
tetradic
#338B2E #2E628B #862E8B #8B582E
square
#338B2E #2E628B #862E8B #8B582E
split-complementary
#338B2E #582E8B #8B2E62
monochromatic
#112F10 #225D1F #338B2E #44B93D #6CCD67
Accessibility & contrast
On white
4.31
#338B2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.87
#338B2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338B2E
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338B2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338B2E | 1.00 | 4.31 | 4.87 | 4.87 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7E22
Deuteranopia (green-blind)
#837736
Tritanopia (blue-blind)
#238778
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #338b2e; /* rgb */ color: rgb(51, 139, 46); /* oklch */ color: oklch(56.4% 0.154 142.4);
Tailwind
colors: {
custom: {
50: '#76ae6b',
500: '#338b2e',
950: '#000000',
},
}SCSS
$custom: #338b2e; $custom-light: #76ae6b; $custom-dark: #000000;
JSON
{
"hex": "#338b2e",
"rgb": {
"r": 51,
"g": 139,
"b": 46
},
"hsl": {
"h": 116.774,
"s": 50.27,
"l": 36.275
},
"oklch": {
"l": 0.56362,
"c": 0.15444,
"h": 142.4
},
"luminance": 0.19366
}Semantic roles & 50–950 ramp
primary
#338B2E
secondary
#AF61B3
accent
#4EDAD2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A