#338C2D#338C2D
#338C2D is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.156 H 142.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #338C2D |
|---|---|
| RGB | rgb(51, 140, 45) |
| HSL | hsl(116, 51%, 36%) |
| HSV | hsv(116, 68%, 55%) |
| CMYK | cmyk(63.6%, 0%, 67.9%, 45.1%) |
| CIE-LAB | lab(51.44, -45.43, 41.53) |
| CIE-LCH | lch(51.44, 61.55, 137.57°) |
| OKLab | oklab(56.63% -0.1237 0.0958) |
| OKLCH | oklch(56.63% 0.156 142.2) |
| XYZ | xyz(11.2164, 19.6484, 5.6835) |
| Luminance | 0.1965 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.63
Emerald Green
#028F1E
ΔE00 2.75
Irish Green
#019529
ΔE00 3.68
Kelley Green
#009337
ΔE00 3.69
True Green
#089404
ΔE00 4.60
Fern Green
#548D44
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338C2D #862D8C
analogous
#638C2D #338C2D #2D8C57
triadic
#338C2D #2D338C #8C2D33
tetradic
#338C2D #2D638C #862D8C #8C572D
square
#338C2D #2D638C #862D8C #8C572D
split-complementary
#338C2D #572D8C #8C2D63
monochromatic
#112F0F #225E1E #338C2D #44BA3C #6CCE66
Accessibility & contrast
On white
4.26
#338C2D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#338C2D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338C2D
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338C2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338C2D | 1.00 | 4.26 | 4.93 | 4.93 |
| #FFFFFF | 4.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.93 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.93 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8F7F21
Deuteranopia (green-blind)
#847836
Tritanopia (blue-blind)
#238878
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #338c2d; /* rgb */ color: rgb(51, 140, 45); /* oklch */ color: oklch(56.6% 0.156 142.2);
Tailwind
colors: {
custom: {
50: '#76ae6b',
500: '#338c2d',
950: '#000000',
},
}SCSS
$custom: #338c2d; $custom-light: #76ae6b; $custom-dark: #000000;
JSON
{
"hex": "#338c2d",
"rgb": {
"r": 51,
"g": 140,
"b": 45
},
"hsl": {
"h": 116.211,
"s": 51.351,
"l": 36.275
},
"oklch": {
"l": 0.56628,
"c": 0.15648,
"h": 142.2
},
"luminance": 0.19649
}Semantic roles & 50–950 ramp
primary
#338C2D
secondary
#AF60B4
accent
#4DDBD2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A