#338E2A#338E2A
#338E2A is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.161 H 141.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #338E2A |
|---|---|
| RGB | rgb(51, 142, 42) |
| HSL | hsl(115, 54%, 36%) |
| HSV | hsv(115, 70%, 56%) |
| CMYK | cmyk(64.1%, 0%, 70.4%, 44.3%) |
| CIE-LAB | lab(52.08, -46.47, 43.50) |
| CIE-LCH | lch(52.08, 63.65, 136.89°) |
| OKLab | oklab(57.15% -0.1267 0.0996) |
| OKLCH | oklch(57.15% 0.161 141.8) |
| XYZ | xyz(11.4556, 20.2159, 5.4884) |
| Luminance | 0.2022 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.75
Emerald Green
#028F1E
ΔE00 2.41
Irish Green
#019529
ΔE00 3.14
Kelley Green
#009337
ΔE00 3.65
True Green
#089404
ΔE00 3.83
Fern Green
#548D44
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338E2A #852A8E
analogous
#658E2A #338E2A #2A8E53
triadic
#338E2A #2A338E #8E2A33
tetradic
#338E2A #2A658E #852A8E #8E532A
square
#338E2A #2A658E #852A8E #8E532A
split-complementary
#338E2A #532A8E #8E2A65
monochromatic
#11300E #225F1C #338E2A #44BD38 #6CD162
Accessibility & contrast
On white
4.16
#338E2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.04
#338E2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338E2A
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338E2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338E2A | 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)
#91811B
Deuteranopia (green-blind)
#867933
Tritanopia (blue-blind)
#238A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #338e2a; /* rgb */ color: rgb(51, 142, 42); /* oklch */ color: oklch(57.2% 0.161 141.8);
Tailwind
colors: {
custom: {
50: '#76b069',
500: '#338e2a',
950: '#000000',
},
}SCSS
$custom: #338e2a; $custom-light: #76b069; $custom-dark: #000000;
JSON
{
"hex": "#338e2a",
"rgb": {
"r": 51,
"g": 142,
"b": 42
},
"hsl": {
"h": 114.6,
"s": 54.348,
"l": 36.078
},
"oklch": {
"l": 0.57151,
"c": 0.16117,
"h": 141.8
},
"luminance": 0.20217
}Semantic roles & 50–950 ramp
primary
#338E2A
secondary
#AE5DB6
accent
#4ADED0
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1007
muted
#7C7F7A