#338C2C#338C2C
#338C2C is a mid, vivid green. Relative luminance 0.196; OKLCH L 56.6% C 0.157 H 142.1°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #338C2C |
|---|---|
| RGB | rgb(51, 140, 44) |
| HSL | hsl(116, 52%, 36%) |
| HSV | hsv(116, 69%, 55%) |
| CMYK | cmyk(63.6%, 0%, 68.6%, 45.1%) |
| CIE-LAB | lab(51.43, -45.53, 41.95) |
| CIE-LCH | lch(51.43, 61.91, 137.34°) |
| OKLab | oklab(56.62% -0.124 0.0966) |
| OKLCH | oklch(56.62% 0.157 142.1) |
| XYZ | xyz(11.1973, 19.6407, 5.5833) |
| Luminance | 0.1964 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.56
Emerald Green
#028F1E
ΔE00 2.69
Irish Green
#019529
ΔE00 3.67
Kelley Green
#009337
ΔE00 3.77
True Green
#089404
ΔE00 4.50
Fern Green
#548D44
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338C2C #852C8C
analogous
#638C2C #338C2C #2C8C55
triadic
#338C2C #2C338C #8C2C33
tetradic
#338C2C #2C638C #852C8C #8C552C
square
#338C2C #2C638C #852C8C #8C552C
split-complementary
#338C2C #552C8C #8C2C63
monochromatic
#112F0F #225D1D #338C2C #44BB3B #6CCE64
Accessibility & contrast
On white
4.26
#338C2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.93
#338C2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338C2C
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338C2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338C2C | 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)
#8F7F1F
Deuteranopia (green-blind)
#847835
Tritanopia (blue-blind)
#238878
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #338c2c; /* rgb */ color: rgb(51, 140, 44); /* oklch */ color: oklch(56.6% 0.157 142.1);
Tailwind
colors: {
custom: {
50: '#76ae6a',
500: '#338c2c',
950: '#000000',
},
}SCSS
$custom: #338c2c; $custom-light: #76ae6a; $custom-dark: #000000;
JSON
{
"hex": "#338c2c",
"rgb": {
"r": 51,
"g": 140,
"b": 44
},
"hsl": {
"h": 115.625,
"s": 52.174,
"l": 36.078
},
"oklch": {
"l": 0.56618,
"c": 0.15722,
"h": 142.1
},
"luminance": 0.19642
}Semantic roles & 50–950 ramp
primary
#338C2C
secondary
#AE5FB5
accent
#4CDCD1
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091007
muted
#7B7F7A