#338A2C#338A2C
#338A2C is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.155 H 142.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #338A2C |
|---|---|
| RGB | rgb(51, 138, 44) |
| HSL | hsl(116, 52%, 36%) |
| HSV | hsv(116, 68%, 54%) |
| CMYK | cmyk(63%, 0%, 68.1%, 45.9%) |
| CIE-LAB | lab(50.76, -44.78, 41.23) |
| CIE-LCH | lch(50.76, 60.87, 137.36°) |
| OKLab | oklab(56.06% -0.122 0.0951) |
| OKLCH | oklch(56.06% 0.155 142.1) |
| XYZ | xyz(10.9078, 19.0616, 5.4868) |
| Luminance | 0.1906 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.60
Emerald Green
#028F1E
ΔE00 3.05
Kelley Green
#009337
ΔE00 4.16
Irish Green
#019529
ΔE00 4.27
Tree Green
#2A7E19
ΔE00 4.60
Fern Green
#548D44
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338A2C #832C8A
analogous
#628A2C #338A2C #2C8A54
triadic
#338A2C #2C338A #8A2C33
tetradic
#338A2C #2C628A #832C8A #8A542C
square
#338A2C #2C628A #832C8A #8A542C
split-complementary
#338A2C #542C8A #8A2C62
monochromatic
#112D0E #225C1D #338A2C #44B83B #6BCD63
Accessibility & contrast
On white
4.36
#338A2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#338A2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338A2C
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338A2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338A2C | 1.00 | 4.36 | 4.81 | 4.81 |
| #FFFFFF | 4.36 | 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)
#8D7D20
Deuteranopia (green-blind)
#837634
Tritanopia (blue-blind)
#248677
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #338a2c; /* rgb */ color: rgb(51, 138, 44); /* oklch */ color: oklch(56.1% 0.155 142.1);
Tailwind
colors: {
custom: {
50: '#76ad6a',
500: '#338a2c',
950: '#000000',
},
}SCSS
$custom: #338a2c; $custom-light: #76ad6a; $custom-dark: #000000;
JSON
{
"hex": "#338a2c",
"rgb": {
"r": 51,
"g": 138,
"b": 44
},
"hsl": {
"h": 115.532,
"s": 51.648,
"l": 35.686
},
"oklch": {
"l": 0.56064,
"c": 0.15467,
"h": 142.1
},
"luminance": 0.19063
}Semantic roles & 50–950 ramp
primary
#338A2C
secondary
#AD5EB4
accent
#4DDBD0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A