#797B27#797B27
#797B27 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.4% C 0.105 H 110.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #797B27 |
|---|---|
| RGB | rgb(121, 123, 39) |
| HSL | hsl(61, 52%, 32%) |
| HSV | hsv(61, 68%, 48%) |
| CMYK | cmyk(1.6%, 0%, 68.3%, 51.8%) |
| CIE-LAB | lab(49.95, -12.07, 43.76) |
| CIE-LCH | lch(49.95, 45.39, 105.43°) |
| OKLab | oklab(56.44% -0.0371 0.0985) |
| OKLCH | oklch(56.44% 0.105 110.7) |
| XYZ | xyz(15.3348, 18.3777, 4.6585) |
| Luminance | 0.1838 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.57
Murky Green
#6C7A0E
ΔE00 3.96
Olive Drab
#6F7632
ΔE00 3.98
Poop Green
#6F7C00
ΔE00 4.14
Shit Green
#758000
ΔE00 4.26
Olive
#808000
ΔE00 4.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797B27 #29277B
analogous
#7B5327 #797B27 #4F7B27
triadic
#797B27 #27797B #7B2779
tetradic
#797B27 #277B53 #29277B #7B274F
square
#797B27 #277B53 #29277B #7B274F
split-complementary
#797B27 #274F7B #53277B
monochromatic
#1E1E0A #4B4D18 #797B27 #A7A936 #C6C954
Accessibility & contrast
On white
4.49
#797B27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.68
#797B27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797B27
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797B27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797B27 | 1.00 | 4.49 | 4.68 | 4.68 |
| #FFFFFF | 4.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#85761B
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797b27; /* rgb */ color: rgb(121, 123, 39); /* oklch */ color: oklch(56.4% 0.105 110.7);
Tailwind
colors: {
custom: {
50: '#a2a166',
500: '#797b27',
950: '#000000',
},
}SCSS
$custom: #797b27; $custom-light: #a2a166; $custom-dark: #000000;
JSON
{
"hex": "#797b27",
"rgb": {
"r": 121,
"g": 123,
"b": 39
},
"hsl": {
"h": 61.429,
"s": 51.852,
"l": 31.765
},
"oklch": {
"l": 0.56439,
"c": 0.10528,
"h": 110.7
},
"luminance": 0.18377
}Semantic roles & 50–950 ramp
primary
#797B27
secondary
#5351AD
accent
#4CDB50
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A