#797C1B#797C1B
#797C1B is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.114 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #797C1B |
|---|---|
| RGB | rgb(121, 124, 27) |
| HSL | hsl(62, 64%, 30%) |
| HSV | hsv(62, 78%, 49%) |
| CMYK | cmyk(2.4%, 0%, 78.2%, 51.4%) |
| CIE-LAB | lab(50.17, -13.27, 48.65) |
| CIE-LCH | lch(50.17, 50.42, 105.26°) |
| OKLab | oklab(56.59% -0.0417 0.1066) |
| OKLCH | oklch(56.59% 0.114 111.4) |
| XYZ | xyz(15.2912, 18.5598, 3.8136) |
| Luminance | 0.1856 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.89
Poop Green
#6F7C00
ΔE00 3.05
Olive
#808000
ΔE00 3.13
Olive (survey)
#6E750E
ΔE00 3.24
Murky Green
#6C7A0E
ΔE00 3.40
Swamp Green
#748500
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C1B #1E1B7C
analogous
#7C4F1B #797C1B #487C1B
triadic
#797C1B #1B797C #7C1B79
tetradic
#797C1B #1B7C4F #1E1B7C #7C1B48
square
#797C1B #1B7C4F #1E1B7C #7C1B48
split-complementary
#797C1B #1B487C #4F1B7C
monochromatic
#191905 #484A10 #797C1B #AAAE26 #D0D53D
Accessibility & contrast
On white
4.46
#797C1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#797C1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C1B
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C1B | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867604
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797c1b; /* rgb */ color: rgb(121, 124, 27); /* oklch */ color: oklch(56.6% 0.114 111.4);
Tailwind
colors: {
custom: {
50: '#a3a160',
500: '#797c1b',
950: '#000000',
},
}SCSS
$custom: #797c1b; $custom-light: #a3a160; $custom-dark: #000000;
JSON
{
"hex": "#797c1b",
"rgb": {
"r": 121,
"g": 124,
"b": 27
},
"hsl": {
"h": 61.856,
"s": 64.238,
"l": 29.608
},
"oklch": {
"l": 0.56587,
"c": 0.11448,
"h": 111.4
},
"luminance": 0.18559
}Semantic roles & 50–950 ramp
primary
#797C1B
secondary
#4643B0
accent
#41E746
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79