#338A2A#338A2A
#338A2A is a mid, vivid green. Relative luminance 0.190; OKLCH L 56.0% C 0.156 H 141.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #338A2A |
|---|---|
| RGB | rgb(51, 138, 42) |
| HSL | hsl(114, 53%, 35%) |
| HSV | hsv(114, 70%, 54%) |
| CMYK | cmyk(63%, 0%, 69.6%, 45.9%) |
| CIE-LAB | lab(50.74, -44.97, 42.08) |
| CIE-LCH | lch(50.74, 61.59, 136.91°) |
| OKLab | oklab(56.05% -0.1227 0.0966) |
| OKLCH | oklch(56.05% 0.156 141.8) |
| XYZ | xyz(10.8711, 19.0469, 5.2936) |
| Luminance | 0.1905 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.45
Emerald Green
#028F1E
ΔE00 2.95
Irish Green
#019529
ΔE00 4.25
Kelley Green
#009337
ΔE00 4.30
Tree Green
#2A7E19
ΔE00 4.52
True Green
#089404
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338A2A #812A8A
analogous
#638A2A #338A2A #2A8A51
triadic
#338A2A #2A338A #8A2A33
tetradic
#338A2A #2A638A #812A8A #8A512A
square
#338A2A #2A638A #812A8A #8A512A
split-complementary
#338A2A #512A8A #8A2A63
monochromatic
#102C0D #225B1C #338A2A #44B938 #6ACF60
Accessibility & contrast
On white
4.37
#338A2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#338A2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338A2A
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338A2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338A2A | 1.00 | 4.37 | 4.81 | 4.81 |
| #FFFFFF | 4.37 | 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)
#8D7D1D
Deuteranopia (green-blind)
#837633
Tritanopia (blue-blind)
#248677
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #338a2a; /* rgb */ color: rgb(51, 138, 42); /* oklch */ color: oklch(56.0% 0.156 141.8);
Tailwind
colors: {
custom: {
50: '#76ad69',
500: '#338a2a',
950: '#000000',
},
}SCSS
$custom: #338a2a; $custom-light: #76ad69; $custom-dark: #000000;
JSON
{
"hex": "#338a2a",
"rgb": {
"r": 51,
"g": 138,
"b": 42
},
"hsl": {
"h": 114.375,
"s": 53.333,
"l": 35.294
},
"oklch": {
"l": 0.56045,
"c": 0.15614,
"h": 141.8
},
"luminance": 0.19048
}Semantic roles & 50–950 ramp
primary
#338A2A
secondary
#AC5BB4
accent
#4BDDCF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091006
muted
#7B7F7A