#797B18#797B18
#797B18 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.115 H 110.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).
Color values
| HEX | #797B18 |
|---|---|
| RGB | rgb(121, 123, 24) |
| HSL | hsl(61, 67%, 29%) |
| HSV | hsv(61, 80%, 48%) |
| CMYK | cmyk(1.6%, 0%, 80.5%, 51.8%) |
| CIE-LAB | lab(49.85, -12.86, 49.36) |
| CIE-LCH | lch(49.85, 51.01, 104.60°) |
| OKLab | oklab(56.33% -0.0408 0.1076) |
| OKLCH | oklch(56.33% 0.115 110.8) |
| XYZ | xyz(15.1335, 18.2972, 3.5985) |
| Luminance | 0.1830 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive
#808000
ΔE00 3.05
Olive (survey)
#6E750E
ΔE00 3.07
Shit Green
#758000
ΔE00 3.08
Poop Green
#6F7C00
ΔE00 3.15
Murky Green
#6C7A0E
ΔE00 3.53
Olive Green
#677A04
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797B18 #1A187B
analogous
#7B4C18 #797B18 #487B18
triadic
#797B18 #18797B #7B1879
tetradic
#797B18 #187B4C #1A187B #7B1848
square
#797B18 #187B4C #1A187B #7B1848
split-complementary
#797B18 #18487B #4C187B
monochromatic
#191A05 #47480E #797B18 #ABAE22 #D4D836
Accessibility & contrast
On white
4.51
#797B18 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.66
#797B18 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797B18
4.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797B18 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797B18 | 1.00 | 4.51 | 4.66 | 4.66 |
| #FFFFFF | 4.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#867821
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797b18; /* rgb */ color: rgb(121, 123, 24); /* oklch */ color: oklch(56.3% 0.115 110.8);
Tailwind
colors: {
custom: {
50: '#a3a05f',
500: '#797b18',
950: '#000000',
},
}SCSS
$custom: #797b18; $custom-light: #a3a05f; $custom-dark: #000000;
JSON
{
"hex": "#797b18",
"rgb": {
"r": 121,
"g": 123,
"b": 24
},
"hsl": {
"h": 61.212,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.56331,
"c": 0.11504,
"h": 110.8
},
"luminance": 0.18297
}Semantic roles & 50–950 ramp
primary
#797B18
secondary
#413FB0
accent
#3EEA41
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79