#335A1F#335A1F
#335A1F is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.099 H 136.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).
Color values
| HEX | #335A1F |
|---|---|
| RGB | rgb(51, 90, 31) |
| HSL | hsl(100, 49%, 24%) |
| HSV | hsv(100, 66%, 35%) |
| CMYK | cmyk(43.3%, 0%, 65.6%, 64.7%) |
| CIE-LAB | lab(34.22, -25.83, 29.11) |
| CIE-LCH | lch(34.22, 38.91, 131.58°) |
| OKLab | oklab(42.42% -0.0714 0.0678) |
| OKLCH | oklch(42.42% 0.099 136.5) |
| XYZ | xyz(5.2686, 8.1148, 2.5848) |
| Luminance | 0.0811 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Forest Green
#2D5A27
ΔE00 2.47
Navy Green
#35530A
ΔE00 4.13
Forest
#0B5509
ΔE00 5.10
Deep Green
#02590F
ΔE00 5.34
Pine
#2B5D34
ΔE00 5.56
Army Green
#4B5D16
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#335A1F #461F5A
analogous
#505A1F #335A1F #1F5A28
triadic
#335A1F #1F335A #5A1F33
tetradic
#335A1F #1F505A #461F5A #5A281F
square
#335A1F #1F505A #461F5A #5A281F
split-complementary
#335A1F #281F5A #5A1F50
monochromatic
#0D1708 #192C0F #335A1F #4D882F #67B53E
Accessibility & contrast
On white
8.01
#335A1F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#335A1F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #335A1F
8.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##335A1F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##335A1F | 1.00 | 8.01 | 2.62 | 8.01 |
| #FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5D5318
Deuteranopia (green-blind)
#584F24
Tritanopia (blue-blind)
#31574D
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #335a1f; /* rgb */ color: rgb(51, 90, 31); /* oklch */ color: oklch(42.4% 0.099 136.5);
Tailwind
colors: {
custom: {
50: '#6e895d',
500: '#335a1f',
950: '#000000',
},
}SCSS
$custom: #335a1f; $custom-light: #6e895d; $custom-dark: #000000;
JSON
{
"hex": "#335a1f",
"rgb": {
"r": 51,
"g": 90,
"b": 31
},
"hsl": {
"h": 99.661,
"s": 48.76,
"l": 23.725
},
"oklch": {
"l": 0.42421,
"c": 0.0985,
"h": 136.5
},
"luminance": 0.08115
}Semantic roles & 50–950 ramp
primary
#335A1F
secondary
#76468F
accent
#4FD8AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B04
muted
#7A7C79