#797E1B#797E1B
#797E1B is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.117 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).
Color values
| HEX | #797E1B |
|---|---|
| RGB | rgb(121, 126, 27) |
| HSL | hsl(63, 65%, 30%) |
| HSV | hsv(63, 79%, 49%) |
| CMYK | cmyk(4%, 0%, 78.6%, 50.6%) |
| CIE-LAB | lab(50.76, -14.35, 49.20) |
| CIE-LCH | lch(50.76, 51.24, 106.26°) |
| OKLab | oklab(57.06% -0.0447 0.1078) |
| OKLCH | oklch(57.06% 0.117 112.5) |
| XYZ | xyz(15.5444, 19.0662, 3.8980) |
| Luminance | 0.1907 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.29
Poop Green
#6F7C00
ΔE00 2.79
Olive
#808000
ΔE00 3.01
Murky Green
#6C7A0E
ΔE00 3.29
Olive (survey)
#6E750E
ΔE00 3.71
Swamp Green
#748500
ΔE00 3.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797E1B #201B7E
analogous
#7E511B #797E1B #487E1B
triadic
#797E1B #1B797E #7E1B79
tetradic
#797E1B #1B7E51 #201B7E #7E1B48
square
#797E1B #1B7E51 #201B7E #7E1B48
split-complementary
#797E1B #1B487E #511B7E
monochromatic
#181905 #494C10 #797E1B #A9B026 #CED63E
Accessibility & contrast
On white
4.36
#797E1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.81
#797E1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797E1B
4.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797E1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797E1B | 1.00 | 4.36 | 4.81 | 4.81 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887802
Deuteranopia (green-blind)
#887A24
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797e1b; /* rgb */ color: rgb(121, 126, 27); /* oklch */ color: oklch(57.1% 0.117 112.5);
Tailwind
colors: {
custom: {
50: '#a3a360',
500: '#797e1b',
950: '#000000',
},
}SCSS
$custom: #797e1b; $custom-light: #a3a360; $custom-dark: #000000;
JSON
{
"hex": "#797e1b",
"rgb": {
"r": 121,
"g": 126,
"b": 27
},
"hsl": {
"h": 63.03,
"s": 64.706,
"l": 30
},
"oklch": {
"l": 0.57064,
"c": 0.11669,
"h": 112.5
},
"luminance": 0.19066
}Semantic roles & 50–950 ramp
primary
#797E1B
secondary
#4943B2
accent
#40E849
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79