#5A7E12#5A7E12
#5A7E12 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.6% C 0.135 H 127.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #5A7E12 |
|---|---|
| RGB | rgb(90, 126, 18) |
| HSL | hsl(80, 75%, 28%) |
| HSV | hsv(80, 86%, 49%) |
| CMYK | cmyk(28.6%, 0%, 85.7%, 50.6%) |
| CIE-LAB | lab(48.43, -28.40, 48.99) |
| CIE-LCH | lch(48.43, 56.63, 120.10°) |
| OKLab | oklab(54.59% -0.0821 0.1068) |
| OKLCH | oklch(54.59% 0.135 127.5) |
| XYZ | xyz(11.7865, 17.1388, 3.2593) |
| Luminance | 0.1714 (WCAG relative) |
| Temperature | warm |
| Family | yellow-green |
Closest named colors
Avocado
#568203
ΔE00 1.91
Dirty Green
#667E2C
ΔE00 3.49
Olive Green
#677A04
ΔE00 4.25
Sap Green
#5C8B15
ΔE00 4.73
Mossy Green
#638B27
ΔE00 4.97
Swamp
#698339
ΔE00 5.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A7E12 #36127E
analogous
#7E6C12 #5A7E12 #247E12
triadic
#5A7E12 #125A7E #7E125A
tetradic
#5A7E12 #127E6C #36127E #7E1224
square
#5A7E12 #127E6C #36127E #7E1224
split-complementary
#5A7E12 #12247E #6C127E
monochromatic
#131B04 #34480A #5A7E12 #80B41A #A4E12A
Accessibility & contrast
On white
4.74
#5A7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.43
#5A7E12 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5A7E12
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A7E12 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A7E12 | 1.00 | 4.74 | 4.43 | 4.74 |
| #FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#80721F
Tritanopia (blue-blind)
#5E786B
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #5a7e12; /* rgb */ color: rgb(90, 126, 18); /* oklch */ color: oklch(54.6% 0.135 127.5);
Tailwind
colors: {
custom: {
50: '#8da35c',
500: '#5a7e12',
950: '#000000',
},
}SCSS
$custom: #5a7e12; $custom-light: #8da35c; $custom-dark: #000000;
JSON
{
"hex": "#5a7e12",
"rgb": {
"r": 90,
"g": 126,
"b": 18
},
"hsl": {
"h": 80,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.5459,
"c": 0.13472,
"h": 127.5
},
"luminance": 0.17139
}Semantic roles & 50–950 ramp
primary
#5A7E12
secondary
#6138B4
accent
#36F275
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F04
muted
#7D7F79