#797B1F#797B1F
#797B1F is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.111 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).
Color values
| HEX | #797B1F |
|---|---|
| RGB | rgb(121, 123, 31) |
| HSL | hsl(61, 60%, 30%) |
| HSV | hsv(61, 75%, 48%) |
| CMYK | cmyk(1.6%, 0%, 74.8%, 51.8%) |
| CIE-LAB | lab(49.89, -12.53, 46.94) |
| CIE-LCH | lch(49.89, 48.59, 104.95°) |
| OKLab | oklab(56.38% -0.0393 0.1038) |
| OKLCH | oklch(56.38% 0.111 110.7) |
| XYZ | xyz(15.2160, 18.3302, 4.0326) |
| Luminance | 0.1833 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.16
Poop Green
#6F7C00
ΔE00 3.48
Shit Green
#758000
ΔE00 3.51
Murky Green
#6C7A0E
ΔE00 3.60
Olive
#808000
ΔE00 3.63
Olive Drab
#6F7632
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797B1F #211F7B
analogous
#7B4F1F #797B1F #4B7B1F
triadic
#797B1F #1F797B #7B1F79
tetradic
#797B1F #1F7B4F #211F7B #7B1F4B
square
#797B1F #1F7B4F #211F7B #7B1F4B
split-complementary
#797B1F #1F4B7B #4F1F7B
monochromatic
#191906 #494A13 #797B1F #A9AC2B #CDD044
Accessibility & contrast
On white
4.50
#797B1F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.67
#797B1F on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797B1F
4.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797B1F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797B1F | 1.00 | 4.50 | 4.67 | 4.67 |
| #FFFFFF | 4.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85750D
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797b1f; /* rgb */ color: rgb(121, 123, 31); /* oklch */ color: oklch(56.4% 0.111 110.7);
Tailwind
colors: {
custom: {
50: '#a3a162',
500: '#797b1f',
950: '#000000',
},
}SCSS
$custom: #797b1f; $custom-light: #a3a162; $custom-dark: #000000;
JSON
{
"hex": "#797b1f",
"rgb": {
"r": 121,
"g": 123,
"b": 31
},
"hsl": {
"h": 61.304,
"s": 59.74,
"l": 30.196
},
"oklch": {
"l": 0.56375,
"c": 0.11097,
"h": 110.7
},
"luminance": 0.1833
}Semantic roles & 50–950 ramp
primary
#797B1F
secondary
#4A48AE
accent
#45E348
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A