#797D15#797D15
#797D15 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.119 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #797D15 |
|---|---|
| RGB | rgb(121, 125, 21) |
| HSL | hsl(62, 71%, 29%) |
| HSV | hsv(62, 83%, 49%) |
| CMYK | cmyk(3.2%, 0%, 83.2%, 51%) |
| CIE-LAB | lab(50.44, -14.05, 50.79) |
| CIE-LCH | lch(50.44, 52.70, 105.46°) |
| OKLab | oklab(56.79% -0.0444 0.11) |
| OKLCH | oklch(56.79% 0.119 112) |
| XYZ | xyz(15.3547, 18.7867, 3.5267) |
| Luminance | 0.1879 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.23
Olive
#808000
ΔE00 2.61
Poop Green
#6F7C00
ΔE00 2.69
Murky Green
#6C7A0E
ΔE00 3.35
Olive (survey)
#6E750E
ΔE00 3.47
Swamp Green
#748500
ΔE00 4.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D15 #19157D
analogous
#7D4D15 #797D15 #457D15
triadic
#797D15 #15797D #7D1579
tetradic
#797D15 #157D4D #19157D #7D1545
square
#797D15 #157D4D #19157D #7D1545
split-complementary
#797D15 #15457D #4D157D
monochromatic
#191A04 #46490C #797D15 #ACB11E #D6DC30
Accessibility & contrast
On white
4.41
#797D15 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#797D15 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D15
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D15 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D15 | 1.00 | 4.41 | 4.76 | 4.76 |
| #FFFFFF | 4.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#88791F
Tritanopia (blue-blind)
#82756A
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d15; /* rgb */ color: rgb(121, 125, 21); /* oklch */ color: oklch(56.8% 0.119 112.0);
Tailwind
colors: {
custom: {
50: '#a3a25e',
500: '#797d15',
950: '#000000',
},
}SCSS
$custom: #797d15; $custom-light: #a3a25e; $custom-dark: #000000;
JSON
{
"hex": "#797d15",
"rgb": {
"r": 121,
"g": 125,
"b": 21
},
"hsl": {
"h": 62.308,
"s": 71.233,
"l": 28.627
},
"oklch": {
"l": 0.56792,
"c": 0.11866,
"h": 112
},
"luminance": 0.18786
}Semantic roles & 50–950 ramp
primary
#797D15
secondary
#403CB2
accent
#3AEE41
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79