#338E1F#338E1F
#338E1F is a mid, vivid green. Relative luminance 0.201; OKLCH L 57.1% C 0.168 H 140.6°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #338E1F |
|---|---|
| RGB | rgb(51, 142, 31) |
| HSL | hsl(109, 64%, 34%) |
| HSV | hsv(109, 78%, 56%) |
| CMYK | cmyk(64.1%, 0%, 78.2%, 44.3%) |
| CIE-LAB | lab(52.00, -47.37, 47.64) |
| CIE-LCH | lch(52.00, 67.18, 134.84°) |
| OKLab | oklab(57.06% -0.1298 0.1067) |
| OKLCH | oklch(57.06% 0.168 140.6) |
| XYZ | xyz(11.2850, 20.1477, 4.5902) |
| Luminance | 0.2015 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.02
Emerald Green
#028F1E
ΔE00 2.48
True Green
#089404
ΔE00 3.05
Irish Green
#019529
ΔE00 3.53
Kelley Green
#009337
ΔE00 4.66
Grass Green
#3F9B0B
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338E1F #7A1F8E
analogous
#6B8E1F #338E1F #1F8E43
triadic
#338E1F #1F338E #8E1F33
tetradic
#338E1F #1F6B8E #7A1F8E #8E431F
square
#338E1F #1F6B8E #7A1F8E #8E431F
split-complementary
#338E1F #431F8E #8E1F6B
monochromatic
#0F2A09 #215C14 #338E1F #45C02A #68D94F
Accessibility & contrast
On white
4.18
#338E1F on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.03
#338E1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338E1F
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338E1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338E1F | 1.00 | 4.18 | 5.03 | 5.03 |
| #FFFFFF | 4.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#928104
Deuteranopia (green-blind)
#87792B
Tritanopia (blue-blind)
#258979
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #338e1f; /* rgb */ color: rgb(51, 142, 31); /* oklch */ color: oklch(57.1% 0.168 140.6);
Tailwind
colors: {
custom: {
50: '#77b063',
500: '#338e1f',
950: '#000000',
},
}SCSS
$custom: #338e1f; $custom-light: #77b063; $custom-dark: #000000;
JSON
{
"hex": "#338e1f",
"rgb": {
"r": 51,
"g": 142,
"b": 31
},
"hsl": {
"h": 109.189,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.57063,
"c": 0.16803,
"h": 140.6
},
"luminance": 0.20149
}Semantic roles & 50–950 ramp
primary
#338E1F
secondary
#A84DBB
accent
#41E7C9
background
#F7FAF6
surface
#EEF5EB
border
#C9CFC6
text
#0A1106
muted
#7C807A