#338E2C#338E2C
#338E2C is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.160 H 142.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #338E2C |
|---|---|
| RGB | rgb(51, 142, 44) |
| HSL | hsl(116, 53%, 36%) |
| HSV | hsv(116, 69%, 56%) |
| CMYK | cmyk(64.1%, 0%, 69%, 44.3%) |
| CIE-LAB | lab(52.10, -46.28, 42.67) |
| CIE-LCH | lch(52.10, 62.95, 137.32°) |
| OKLab | oklab(57.17% -0.1261 0.0981) |
| OKLCH | oklch(57.17% 0.16 142.1) |
| XYZ | xyz(11.4922, 20.2305, 5.6816) |
| Luminance | 0.2023 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.83
Emerald Green
#028F1E
ΔE00 2.49
Irish Green
#019529
ΔE00 3.13
Kelley Green
#009337
ΔE00 3.48
True Green
#089404
ΔE00 4.03
Fern Green
#548D44
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338E2C #872C8E
analogous
#648E2C #338E2C #2C8E56
triadic
#338E2C #2C338E #8E2C33
tetradic
#338E2C #2C648E #872C8E #8E562C
square
#338E2C #2C648E #872C8E #8E562C
split-complementary
#338E2C #562C8E #8E2C64
monochromatic
#11310F #225F1E #338E2C #44BD3A #6DCF65
Accessibility & contrast
On white
4.16
#338E2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.05
#338E2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338E2C
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338E2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338E2C | 1.00 | 4.16 | 5.05 | 5.05 |
| #FFFFFF | 4.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#91811F
Deuteranopia (green-blind)
#867935
Tritanopia (blue-blind)
#228A7A
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #338e2c; /* rgb */ color: rgb(51, 142, 44); /* oklch */ color: oklch(57.2% 0.160 142.1);
Tailwind
colors: {
custom: {
50: '#76b06a',
500: '#338e2c',
950: '#000000',
},
}SCSS
$custom: #338e2c; $custom-light: #76b06a; $custom-dark: #000000;
JSON
{
"hex": "#338e2c",
"rgb": {
"r": 51,
"g": 142,
"b": 44
},
"hsl": {
"h": 115.714,
"s": 52.688,
"l": 36.471
},
"oklch": {
"l": 0.5717,
"c": 0.15974,
"h": 142.1
},
"luminance": 0.20232
}Semantic roles & 50–950 ramp
primary
#338E2C
secondary
#B060B6
accent
#4CDCD2
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A