#338A2B#338A2B
#338A2B is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.155 H 141.9°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #338A2B |
|---|---|
| RGB | rgb(51, 138, 43) |
| HSL | hsl(115, 52%, 35%) |
| HSV | hsv(115, 69%, 54%) |
| CMYK | cmyk(63%, 0%, 68.8%, 45.9%) |
| CIE-LAB | lab(50.75, -44.88, 41.66) |
| CIE-LCH | lch(50.75, 61.23, 137.13°) |
| OKLab | oklab(56.05% -0.1223 0.0958) |
| OKLCH | oklch(56.05% 0.155 141.9) |
| XYZ | xyz(10.8892, 19.0541, 5.3890) |
| Luminance | 0.1905 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.52
Emerald Green
#028F1E
ΔE00 3.00
Kelley Green
#009337
ΔE00 4.23
Irish Green
#019529
ΔE00 4.26
Tree Green
#2A7E19
ΔE00 4.55
True Green
#089404
ΔE00 4.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338A2B #822B8A
analogous
#638A2B #338A2B #2B8A52
triadic
#338A2B #2B338A #8A2B33
tetradic
#338A2B #2B638A #822B8A #8A522B
square
#338A2B #2B638A #822B8A #8A522B
split-complementary
#338A2B #522B8A #8A2B63
monochromatic
#112D0E #225B1C #338A2B #44B93A #6BCE61
Accessibility & contrast
On white
4.36
#338A2B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#338A2B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338A2B
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338A2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338A2B | 1.00 | 4.36 | 4.81 | 4.81 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D1E
Deuteranopia (green-blind)
#837634
Tritanopia (blue-blind)
#248677
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #338a2b; /* rgb */ color: rgb(51, 138, 43); /* oklch */ color: oklch(56.1% 0.155 141.9);
Tailwind
colors: {
custom: {
50: '#76ad69',
500: '#338a2b',
950: '#000000',
},
}SCSS
$custom: #338a2b; $custom-light: #76ad69; $custom-dark: #000000;
JSON
{
"hex": "#338a2b",
"rgb": {
"r": 51,
"g": 138,
"b": 43
},
"hsl": {
"h": 114.947,
"s": 52.486,
"l": 35.49
},
"oklch": {
"l": 0.56054,
"c": 0.15541,
"h": 141.9
},
"luminance": 0.19055
}Semantic roles & 50–950 ramp
primary
#338A2B
secondary
#AD5DB4
accent
#4CDCD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A