#797D1C#797D1C
#797D1C is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.8% C 0.115 H 112.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).
Color values
| HEX | #797D1C |
|---|---|
| RGB | rgb(121, 125, 28) |
| HSL | hsl(62, 63%, 30%) |
| HSV | hsv(62, 78%, 49%) |
| CMYK | cmyk(3.2%, 0%, 77.6%, 51%) |
| CIE-LAB | lab(50.47, -13.76, 48.58) |
| CIE-LCH | lch(50.47, 50.49, 105.82°) |
| OKLab | oklab(56.83% -0.043 0.1067) |
| OKLCH | oklch(56.83% 0.115 112) |
| XYZ | xyz(15.4289, 18.8164, 3.9176) |
| Luminance | 0.1882 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.64
Poop Green
#6F7C00
ΔE00 2.94
Olive
#808000
ΔE00 3.13
Murky Green
#6C7A0E
ΔE00 3.33
Olive (survey)
#6E750E
ΔE00 3.46
Swamp Green
#748500
ΔE00 4.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797D1C #201C7D
analogous
#7D501C #797D1C #497D1C
triadic
#797D1C #1C797D #7D1C79
tetradic
#797D1C #1C7D50 #201C7D #7D1C49
square
#797D1C #1C7D50 #201C7D #7D1C49
split-complementary
#797D1C #1C497D #501C7D
monochromatic
#181906 #494B11 #797D1C #A9AF27 #CED43F
Accessibility & contrast
On white
4.41
#797D1C on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.76
#797D1C on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797D1C
4.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797D1C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797D1C | 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)
#877705
Deuteranopia (green-blind)
#877924
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797d1c; /* rgb */ color: rgb(121, 125, 28); /* oklch */ color: oklch(56.8% 0.115 112.0);
Tailwind
colors: {
custom: {
50: '#a3a261',
500: '#797d1c',
950: '#000000',
},
}SCSS
$custom: #797d1c; $custom-light: #a3a261; $custom-dark: #000000;
JSON
{
"hex": "#797d1c",
"rgb": {
"r": 121,
"g": 125,
"b": 28
},
"hsl": {
"h": 62.474,
"s": 63.399,
"l": 30
},
"oklch": {
"l": 0.56831,
"c": 0.11501,
"h": 112
},
"luminance": 0.18816
}Semantic roles & 50–950 ramp
primary
#797D1C
secondary
#4944B1
accent
#41E648
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A