#338A2F#338A2F
#338A2F is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.152 H 142.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #338A2F |
|---|---|
| RGB | rgb(51, 138, 47) |
| HSL | hsl(117, 49%, 36%) |
| HSV | hsv(117, 66%, 54%) |
| CMYK | cmyk(63%, 0%, 65.9%, 45.9%) |
| CIE-LAB | lab(50.79, -44.46, 39.92) |
| CIE-LCH | lch(50.79, 59.75, 138.08°) |
| OKLab | oklab(56.1% -0.121 0.0926) |
| OKLCH | oklch(56.1% 0.152 142.6) |
| XYZ | xyz(10.9662, 19.0850, 5.7946) |
| Luminance | 0.1909 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.89
Emerald Green
#028F1E
ΔE00 3.25
Kelley Green
#009337
ΔE00 3.99
Irish Green
#019529
ΔE00 4.32
Fern Green
#548D44
ΔE00 4.70
Tree Green
#2A7E19
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338A2F #862F8A
analogous
#618A2F #338A2F #2F8A59
triadic
#338A2F #2F338A #8A2F33
tetradic
#338A2F #2F618A #862F8A #8A592F
square
#338A2F #2F618A #862F8A #8A592F
split-complementary
#338A2F #592F8A #8A2F61
monochromatic
#112F10 #225C1F #338A2F #44B83F #6CCC68
Accessibility & contrast
On white
4.36
#338A2F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#338A2F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338A2F
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338A2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338A2F | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8D7D24
Deuteranopia (green-blind)
#827637
Tritanopia (blue-blind)
#238677
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #338a2f; /* rgb */ color: rgb(51, 138, 47); /* oklch */ color: oklch(56.1% 0.152 142.6);
Tailwind
colors: {
custom: {
50: '#75ad6c',
500: '#338a2f',
950: '#000000',
},
}SCSS
$custom: #338a2f; $custom-light: #75ad6c; $custom-dark: #000000;
JSON
{
"hex": "#338a2f",
"rgb": {
"r": 51,
"g": 138,
"b": 47
},
"hsl": {
"h": 117.363,
"s": 49.189,
"l": 36.275
},
"oklch": {
"l": 0.56096,
"c": 0.15238,
"h": 142.6
},
"luminance": 0.19086
}Semantic roles & 50–950 ramp
primary
#338A2F
secondary
#AF62B3
accent
#4FD9D3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A