#5F7D1C#5F7D1C
#5F7D1C is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.126 H 125.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #5F7D1C |
|---|---|
| RGB | rgb(95, 125, 28) |
| HSL | hsl(79, 63%, 30%) |
| HSV | hsv(79, 78%, 49%) |
| CMYK | cmyk(24%, 0%, 77.6%, 51%) |
| CIE-LAB | lab(48.49, -25.33, 46.01) |
| CIE-LCH | lch(48.49, 52.52, 118.83°) |
| OKLab | oklab(54.74% -0.0733 0.1021) |
| OKLCH | oklch(54.74% 0.126 125.7) |
| XYZ | xyz(12.2626, 17.1838, 3.7691) |
| Luminance | 0.1718 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Dirty Green
#667E2C
ΔE00 2.25
Avocado
#568203
ΔE00 3.12
Olive Green
#677A04
ΔE00 3.70
Swamp
#698339
ΔE00 4.37
Murky Green
#6C7A0E
ΔE00 4.48
Mossy Green
#638B27
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F7D1C #3A1C7D
analogous
#7D6B1C #5F7D1C #2E7D1C
triadic
#5F7D1C #1C5F7D #7D1C5F
tetradic
#5F7D1C #1C7D6B #3A1C7D #7D1C2E
square
#5F7D1C #1C7D6B #3A1C7D #7D1C2E
split-complementary
#5F7D1C #1C2E7D #6B1C7D
monochromatic
#131906 #394B11 #5F7D1C #85AF27 #A6D43F
Accessibility & contrast
On white
4.73
#5F7D1C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.44
#5F7D1C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5F7D1C
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F7D1C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F7D1C | 1.00 | 4.73 | 4.44 | 4.73 |
| #FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#847406
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#63776B
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5f7d1c; /* rgb */ color: rgb(95, 125, 28); /* oklch */ color: oklch(54.7% 0.126 125.7);
Tailwind
colors: {
custom: {
50: '#90a260',
500: '#5f7d1c',
950: '#000000',
},
}SCSS
$custom: #5f7d1c; $custom-light: #90a260; $custom-dark: #000000;
JSON
{
"hex": "#5f7d1c",
"rgb": {
"r": 95,
"g": 125,
"b": 28
},
"hsl": {
"h": 78.557,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.54736,
"c": 0.12569,
"h": 125.7
},
"luminance": 0.17184
}Semantic roles & 50–950 ramp
primary
#5F7D1C
secondary
#6644B1
accent
#41E674
background
#F9FAF5
surface
#F1F3EA
border
#CBCDC6
text
#0D0F05
muted
#7E7F79