#338A2D#338A2D
#338A2D is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.154 H 142.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #338A2D |
|---|---|
| RGB | rgb(51, 138, 45) |
| HSL | hsl(116, 51%, 36%) |
| HSV | hsv(116, 67%, 54%) |
| CMYK | cmyk(63%, 0%, 67.4%, 45.9%) |
| CIE-LAB | lab(50.77, -44.67, 40.80) |
| CIE-LCH | lch(50.77, 60.50, 137.60°) |
| OKLab | oklab(56.08% -0.1217 0.0943) |
| OKLCH | oklch(56.08% 0.154 142.2) |
| XYZ | xyz(10.9268, 19.0692, 5.5870) |
| Luminance | 0.1907 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.68
Emerald Green
#028F1E
ΔE00 3.11
Kelley Green
#009337
ΔE00 4.10
Irish Green
#019529
ΔE00 4.28
Tree Green
#2A7E19
ΔE00 4.64
Fern Green
#548D44
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338A2D #842D8A
analogous
#618A2D #338A2D #2D8A55
triadic
#338A2D #2D338A #8A2D33
tetradic
#338A2D #2D618A #842D8A #8A552D
square
#338A2D #2D618A #842D8A #8A552D
split-complementary
#338A2D #552D8A #8A2D61
monochromatic
#112E0F #225C1E #338A2D #44B83C #6BCD65
Accessibility & contrast
On white
4.36
#338A2D on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#338A2D on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338A2D
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338A2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338A2D | 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)
#8D7D21
Deuteranopia (green-blind)
#827635
Tritanopia (blue-blind)
#248677
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #338a2d; /* rgb */ color: rgb(51, 138, 45); /* oklch */ color: oklch(56.1% 0.154 142.2);
Tailwind
colors: {
custom: {
50: '#76ad6a',
500: '#338a2d',
950: '#000000',
},
}SCSS
$custom: #338a2d; $custom-light: #76ad6a; $custom-dark: #000000;
JSON
{
"hex": "#338a2d",
"rgb": {
"r": 51,
"g": 138,
"b": 45
},
"hsl": {
"h": 116.129,
"s": 50.82,
"l": 35.882
},
"oklch": {
"l": 0.56075,
"c": 0.15392,
"h": 142.2
},
"luminance": 0.1907
}Semantic roles & 50–950 ramp
primary
#338A2D
secondary
#AE60B3
accent
#4DDAD1
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A