#338F2A#338F2A
#338F2A is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.162 H 141.8°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #338F2A |
|---|---|
| RGB | rgb(51, 143, 42) |
| HSL | hsl(115, 55%, 36%) |
| HSV | hsv(115, 71%, 56%) |
| CMYK | cmyk(64.3%, 0%, 70.6%, 43.9%) |
| CIE-LAB | lab(52.41, -46.84, 43.85) |
| CIE-LCH | lch(52.41, 64.16, 136.89°) |
| OKLab | oklab(57.43% -0.1277 0.1003) |
| OKLCH | oklch(57.43% 0.162 141.8) |
| XYZ | xyz(11.6050, 20.5148, 5.5382) |
| Luminance | 0.2052 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.99
Emerald Green
#028F1E
ΔE00 2.40
Irish Green
#019529
ΔE00 2.91
Kelley Green
#009337
ΔE00 3.57
True Green
#089404
ΔE00 3.62
Fern Green
#548D44
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338F2A #862A8F
analogous
#668F2A #338F2A #2A8F54
triadic
#338F2A #2A338F #8F2A33
tetradic
#338F2A #2A668F #862A8F #8F542A
square
#338F2A #2A668F #862A8F #8F542A
split-complementary
#338F2A #542A8F #8F2A66
monochromatic
#11300E #22601C #338F2A #44BE38 #6CD162
Accessibility & contrast
On white
4.12
#338F2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.10
#338F2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338F2A
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338F2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338F2A | 1.00 | 4.12 | 5.10 | 5.10 |
| #FFFFFF | 4.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#92821B
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#228B7B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #338f2a; /* rgb */ color: rgb(51, 143, 42); /* oklch */ color: oklch(57.4% 0.162 141.8);
Tailwind
colors: {
custom: {
50: '#77b169',
500: '#338f2a',
950: '#000000',
},
}SCSS
$custom: #338f2a; $custom-light: #77b169; $custom-dark: #000000;
JSON
{
"hex": "#338f2a",
"rgb": {
"r": 51,
"g": 143,
"b": 42
},
"hsl": {
"h": 114.653,
"s": 54.595,
"l": 36.275
},
"oklch": {
"l": 0.57427,
"c": 0.16241,
"h": 141.8
},
"luminance": 0.20516
}Semantic roles & 50–950 ramp
primary
#338F2A
secondary
#AF5EB7
accent
#4ADED1
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A