#338C2E#338C2E
#338C2E is a mid, vivid green. Relative luminance 0.197; OKLCH L 56.6% C 0.156 H 142.4°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #338C2E |
|---|---|
| RGB | rgb(51, 140, 46) |
| HSL | hsl(117, 51%, 36%) |
| HSV | hsv(117, 67%, 55%) |
| CMYK | cmyk(63.6%, 0%, 67.1%, 45.1%) |
| CIE-LAB | lab(51.45, -45.32, 41.09) |
| CIE-LCH | lch(51.45, 61.18, 137.80°) |
| OKLab | oklab(56.64% -0.1234 0.095) |
| OKLCH | oklch(56.64% 0.156 142.4) |
| XYZ | xyz(11.2359, 19.6562, 5.7861) |
| Luminance | 0.1966 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.72
Emerald Green
#028F1E
ΔE00 2.81
Kelley Green
#009337
ΔE00 3.62
Irish Green
#019529
ΔE00 3.69
Fern Green
#548D44
ΔE00 4.68
True Green
#089404
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338C2E #872E8C
analogous
#628C2E #338C2E #2E8C58
triadic
#338C2E #2E338C #8C2E33
tetradic
#338C2E #2E628C #872E8C #8C582E
square
#338C2E #2E628C #872E8C #8C582E
split-complementary
#338C2E #582E8C #8C2E62
monochromatic
#113010 #225E1F #338C2E #44BA3D #6DCD67
Accessibility & contrast
On white
4.26
#338C2E on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#338C2E on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338C2E
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338C2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338C2E | 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)
#8F7F22
Deuteranopia (green-blind)
#847836
Tritanopia (blue-blind)
#238879
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #338c2e; /* rgb */ color: rgb(51, 140, 46); /* oklch */ color: oklch(56.6% 0.156 142.4);
Tailwind
colors: {
custom: {
50: '#76ae6b',
500: '#338c2e',
950: '#000000',
},
}SCSS
$custom: #338c2e; $custom-light: #76ae6b; $custom-dark: #000000;
JSON
{
"hex": "#338c2e",
"rgb": {
"r": 51,
"g": 140,
"b": 46
},
"hsl": {
"h": 116.809,
"s": 50.538,
"l": 36.471
},
"oklch": {
"l": 0.56638,
"c": 0.15572,
"h": 142.4
},
"luminance": 0.19657
}Semantic roles & 50–950 ramp
primary
#338C2E
secondary
#B062B4
accent
#4EDAD3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A