#338F2C#338F2C
#338F2C is a mid, vivid green. Relative luminance 0.205; OKLCH L 57.4% C 0.161 H 142.1°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #338F2C |
|---|---|
| RGB | rgb(51, 143, 44) |
| HSL | hsl(116, 53%, 37%) |
| HSV | hsv(116, 69%, 56%) |
| CMYK | cmyk(64.3%, 0%, 69.2%, 43.9%) |
| CIE-LAB | lab(52.43, -46.65, 43.03) |
| CIE-LCH | lch(52.43, 63.46, 137.31°) |
| OKLab | oklab(57.45% -0.1271 0.0989) |
| OKLCH | oklch(57.45% 0.161 142.1) |
| XYZ | xyz(11.6417, 20.5294, 5.7315) |
| Luminance | 0.2053 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 2.04
Emerald Green
#028F1E
ΔE00 2.47
Irish Green
#019529
ΔE00 2.89
Kelley Green
#009337
ΔE00 3.38
True Green
#089404
ΔE00 3.82
Fern Green
#548D44
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338F2C #882C8F
analogous
#658F2C #338F2C #2C8F57
triadic
#338F2C #2C338F #8F2C33
tetradic
#338F2C #2C658F #882C8F #8F572C
square
#338F2C #2C658F #882C8F #8F572C
split-complementary
#338F2C #572C8F #8F2C65
monochromatic
#12310F #22601E #338F2C #44BE3A #6DD066
Accessibility & contrast
On white
4.11
#338F2C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.11
#338F2C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338F2C
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338F2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338F2C | 1.00 | 4.11 | 5.11 | 5.11 |
| #FFFFFF | 4.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#92821E
Deuteranopia (green-blind)
#877A35
Tritanopia (blue-blind)
#228B7B
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #338f2c; /* rgb */ color: rgb(51, 143, 44); /* oklch */ color: oklch(57.4% 0.161 142.1);
Tailwind
colors: {
custom: {
50: '#77b16a',
500: '#338f2c',
950: '#000000',
},
}SCSS
$custom: #338f2c; $custom-light: #77b16a; $custom-dark: #000000;
JSON
{
"hex": "#338f2c",
"rgb": {
"r": 51,
"g": 143,
"b": 44
},
"hsl": {
"h": 115.758,
"s": 52.941,
"l": 36.667
},
"oklch": {
"l": 0.57446,
"c": 0.16101,
"h": 142.1
},
"luminance": 0.20531
}Semantic roles & 50–950 ramp
primary
#338F2C
secondary
#B061B6
accent
#4BDCD2
background
#F7FBF6
surface
#EEF6EB
border
#C9D0C6
text
#0A1107
muted
#7C807A