#338A1C#338A1C
#338A1C is a mid, vivid green. Relative luminance 0.190; OKLCH L 55.9% C 0.165 H 140.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #338A1C |
|---|---|
| RGB | rgb(51, 138, 28) |
| HSL | hsl(107, 66%, 33%) |
| HSV | hsv(107, 80%, 54%) |
| CMYK | cmyk(63%, 0%, 79.7%, 45.9%) |
| CIE-LAB | lab(50.64, -46.11, 47.35) |
| CIE-LCH | lch(50.64, 66.09, 134.25°) |
| OKLab | oklab(55.93% -0.1265 0.1057) |
| OKLCH | oklch(55.93% 0.165 140.1) |
| XYZ | xyz(10.6628, 18.9636, 4.1968) |
| Luminance | 0.1897 (WCAG relative) |
| Temperature | neutral |
| Family | green |
Closest named colors
Forestgreen (CSS)
#228B22
ΔE00 1.76
Emerald Green
#028F1E
ΔE00 2.97
Dark Grass Green
#388004
ΔE00 3.97
True Green
#089404
ΔE00 4.04
Tree Green
#2A7E19
ΔE00 4.45
Irish Green
#019529
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#338A1C #731C8A
analogous
#6A8A1C #338A1C #1C8A3C
triadic
#338A1C #1C338A #8A1C33
tetradic
#338A1C #1C6A8A #731C8A #8A3C1C
square
#338A1C #1C6A8A #731C8A #8A3C1C
split-complementary
#338A1C #3C1C8A #8A1C6A
monochromatic
#0D2407 #205712 #338A1C #46BD26 #65DA47
Accessibility & contrast
On white
4.38
#338A1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#338A1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #338A1C
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##338A1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##338A1C | 1.00 | 4.38 | 4.79 | 4.79 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#837629
Tritanopia (blue-blind)
#278575
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #338a1c; /* rgb */ color: rgb(51, 138, 28); /* oklch */ color: oklch(55.9% 0.165 140.1);
Tailwind
colors: {
custom: {
50: '#76ad61',
500: '#338a1c',
950: '#000000',
},
}SCSS
$custom: #338a1c; $custom-light: #76ad61; $custom-dark: #000000;
JSON
{
"hex": "#338a1c",
"rgb": {
"r": 51,
"g": 138,
"b": 28
},
"hsl": {
"h": 107.455,
"s": 66.265,
"l": 32.549
},
"oklch": {
"l": 0.55933,
"c": 0.16487,
"h": 140.1
},
"luminance": 0.18965
}Semantic roles & 50–950 ramp
primary
#338A1C
secondary
#A346BB
accent
#3FE9C6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A