#797D1B#797D1B
#797D1B is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.116 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #797D1B |
|---|---|
| RGB | rgb(121, 125, 27) |
| HSL | hsl(62, 64%, 30%) |
| HSV | hsv(62, 78%, 49%) |
| CMYK | cmyk(3.2%, 0%, 78.4%, 51%) |
| CIE-LAB | lab(50.47, -13.81, 48.92) |
| CIE-LCH | lch(50.47, 50.83, 105.76°) |
| OKLab | oklab(56.83% -0.0432 0.1072) |
| OKLCH | oklch(56.83% 0.116 112) |
| XYZ | xyz(15.4171, 18.8117, 3.8556) |
| Luminance | 0.1881 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.57
Poop Green
#6F7C00
ΔE00 2.89
Olive
#808000
ΔE00 3.04
Murky Green
#6C7A0E
ΔE00 3.32
Olive (survey)
#6E750E
ΔE00 3.46
Swamp Green
#748500
ΔE00 4.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D1B #1F1B7D
analogous
#7D501B #797D1B #487D1B
triadic
#797D1B #1B797D #7D1B79
tetradic
#797D1B #1B7D50 #1F1B7D #7D1B48
square
#797D1B #1B7D50 #1F1B7D #7D1B48
split-complementary
#797D1B #1B487D #501B7D
monochromatic
#181905 #484B10 #797D1B #AAAF26 #CFD53D
Accessibility & contrast
On white
4.41
#797D1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#797D1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D1B
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D1B | 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)
#877703
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d1b; /* rgb */ color: rgb(121, 125, 27); /* oklch */ color: oklch(56.8% 0.116 112.0);
Tailwind
colors: {
custom: {
50: '#a3a260',
500: '#797d1b',
950: '#000000',
},
}SCSS
$custom: #797d1b; $custom-light: #a3a260; $custom-dark: #000000;
JSON
{
"hex": "#797d1b",
"rgb": {
"r": 121,
"g": 125,
"b": 27
},
"hsl": {
"h": 62.449,
"s": 64.474,
"l": 29.804
},
"oklch": {
"l": 0.56825,
"c": 0.11558,
"h": 112
},
"luminance": 0.18811
}Semantic roles & 50–950 ramp
primary
#797D1B
secondary
#4743B1
accent
#40E747
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0F05
muted
#7F7E79