#338E2B#338E2B
#338E2B is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.160 H 142.0°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #338E2B |
|---|---|
| RGB | rgb(51, 142, 43) |
| HSL | hsl(115, 54%, 36%) |
| HSV | hsv(115, 70%, 56%) |
| CMYK | cmyk(64.1%, 0%, 69.7%, 44.3%) |
| CIE-LAB | lab(52.09, -46.37, 43.09) |
| CIE-LCH | lch(52.09, 63.30, 137.10°) |
| OKLab | oklab(57.16% -0.1264 0.0989) |
| OKLCH | oklch(57.16% 0.16 142) |
| XYZ | xyz(11.4737, 20.2231, 5.5838) |
| Luminance | 0.2022 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.79
Emerald Green
#028F1E
ΔE00 2.45
Irish Green
#019529
ΔE00 3.13
Kelley Green
#009337
ΔE00 3.57
True Green
#089404
ΔE00 3.92
Fern Green
#548D44
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338E2B #862B8E
analogous
#658E2B #338E2B #2B8E55
triadic
#338E2B #2B338E #8E2B33
tetradic
#338E2B #2B658E #862B8E #8E552B
square
#338E2B #2B658E #862B8E #8E552B
split-complementary
#338E2B #552B8E #8E2B65
monochromatic
#11300F #225F1D #338E2B #44BD39 #6CD063
Accessibility & contrast
On white
4.16
#338E2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#338E2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338E2B
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338E2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338E2B | 1.00 | 4.16 | 5.04 | 5.04 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91811D
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #338e2b; /* rgb */ color: rgb(51, 142, 43); /* oklch */ color: oklch(57.2% 0.160 142.0);
Tailwind
colors: {
custom: {
50: '#76b06a',
500: '#338e2b',
950: '#000000',
},
}SCSS
$custom: #338e2b; $custom-light: #76b06a; $custom-dark: #000000;
JSON
{
"hex": "#338e2b",
"rgb": {
"r": 51,
"g": 142,
"b": 43
},
"hsl": {
"h": 115.152,
"s": 53.514,
"l": 36.275
},
"oklch": {
"l": 0.5716,
"c": 0.16046,
"h": 142
},
"luminance": 0.20224
}Semantic roles & 50–950 ramp
primary
#338E2B
secondary
#AF5FB6
accent
#4BDDD1
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A