#338D2C#338D2C
#338D2C is a mid, vivid green. Relative luminance 0.199; OKLCH L 56.9% C 0.158 H 142.1°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #338D2C |
|---|---|
| RGB | rgb(51, 141, 44) |
| HSL | hsl(116, 52%, 36%) |
| HSV | hsv(116, 69%, 55%) |
| CMYK | cmyk(63.8%, 0%, 68.8%, 44.7%) |
| CIE-LAB | lab(51.76, -45.90, 42.31) |
| CIE-LCH | lch(51.76, 62.43, 137.33°) |
| OKLab | oklab(56.89% -0.1251 0.0974) |
| OKLCH | oklch(56.89% 0.158 142.1) |
| XYZ | xyz(11.3441, 19.9343, 5.6323) |
| Luminance | 0.1993 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.66
Emerald Green
#028F1E
ΔE00 2.57
Irish Green
#019529
ΔE00 3.39
Kelley Green
#009337
ΔE00 3.61
True Green
#089404
ΔE00 4.25
Fern Green
#548D44
ΔE00 4.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338D2C #862C8D
analogous
#648D2C #338D2C #2C8D56
triadic
#338D2C #2C338D #8D2C33
tetradic
#338D2C #2C648D #862C8D #8D562C
square
#338D2C #2C648D #862C8D #8D562C
split-complementary
#338D2C #562C8D #8D2C64
monochromatic
#11300F #225E1D #338D2C #44BC3B #6CCF65
Accessibility & contrast
On white
4.21
#338D2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#338D2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338D2C
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338D2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338D2C | 1.00 | 4.21 | 4.99 | 4.99 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#90801F
Deuteranopia (green-blind)
#857935
Tritanopia (blue-blind)
#238979
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #338d2c; /* rgb */ color: rgb(51, 141, 44); /* oklch */ color: oklch(56.9% 0.158 142.1);
Tailwind
colors: {
custom: {
50: '#76af6a',
500: '#338d2c',
950: '#000000',
},
}SCSS
$custom: #338d2c; $custom-light: #76af6a; $custom-dark: #000000;
JSON
{
"hex": "#338d2c",
"rgb": {
"r": 51,
"g": 141,
"b": 44
},
"hsl": {
"h": 115.67,
"s": 52.432,
"l": 36.275
},
"oklch": {
"l": 0.56894,
"c": 0.15848,
"h": 142.1
},
"luminance": 0.19935
}Semantic roles & 50–950 ramp
primary
#338D2C
secondary
#AF60B5
accent
#4CDCD1
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#091007
muted
#7B7F7A