#797B15#797B15
#797B15 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.117 H 110.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #797B15 |
|---|---|
| RGB | rgb(121, 123, 21) |
| HSL | hsl(61, 71%, 28%) |
| HSV | hsv(61, 83%, 48%) |
| CMYK | cmyk(1.6%, 0%, 82.9%, 51.8%) |
| CIE-LAB | lab(49.84, -12.97, 50.27) |
| CIE-LCH | lch(49.84, 51.92, 104.47°) |
| OKLab | oklab(56.32% -0.0414 0.1089) |
| OKLCH | oklch(56.32% 0.117 110.8) |
| XYZ | xyz(15.1040, 18.2854, 3.4431) |
| Luminance | 0.1829 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 2.86
Shit Green
#758000
ΔE00 2.95
Poop Green
#6F7C00
ΔE00 3.07
Olive (survey)
#6E750E
ΔE00 3.08
Murky Green
#6C7A0E
ΔE00 3.56
Olive Green
#677A04
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797B15 #17157B
analogous
#7B4A15 #797B15 #467B15
triadic
#797B15 #15797B #7B1579
tetradic
#797B15 #157B4A #17157B #7B1546
square
#797B15 #157B4A #17157B #7B1546
split-complementary
#797B15 #15467B #4A157B
monochromatic
#1A1A04 #46470C #797B15 #ACAF1E #D8DB2F
Accessibility & contrast
On white
4.51
#797B15 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.66
#797B15 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797B15
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797B15 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797B15 | 1.00 | 4.51 | 4.66 | 4.66 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797b15; /* rgb */ color: rgb(121, 123, 21); /* oklch */ color: oklch(56.3% 0.117 110.8);
Tailwind
colors: {
custom: {
50: '#a3a05d',
500: '#797b15',
950: '#000000',
},
}SCSS
$custom: #797b15; $custom-light: #a3a05d; $custom-dark: #000000;
JSON
{
"hex": "#797b15",
"rgb": {
"r": 121,
"g": 123,
"b": 21
},
"hsl": {
"h": 61.176,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.56315,
"c": 0.11652,
"h": 110.8
},
"luminance": 0.18285
}Semantic roles & 50–950 ramp
primary
#797B15
secondary
#3E3BB0
accent
#3AEE3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79