#797C27#797C27
#797C27 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.106 H 111.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).
Color values
| HEX | #797C27 |
|---|---|
| RGB | rgb(121, 124, 39) |
| HSL | hsl(62, 52%, 32%) |
| HSV | hsv(62, 69%, 49%) |
| CMYK | cmyk(2.4%, 0%, 68.5%, 51.4%) |
| CIE-LAB | lab(50.25, -12.62, 44.06) |
| CIE-LCH | lch(50.25, 45.83, 105.98°) |
| OKLab | oklab(56.68% -0.0387 0.0992) |
| OKLCH | oklch(56.68% 0.106 111.3) |
| XYZ | xyz(15.4595, 18.6271, 4.7001) |
| Luminance | 0.1863 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive (survey)
#6E750E
ΔE00 3.69
Murky Green
#6C7A0E
ΔE00 3.81
Poop Green
#6F7C00
ΔE00 3.94
Shit Green
#758000
ΔE00 3.98
Olive Drab
#6F7632
ΔE00 4.11
Olive
#808000
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C27 #2A277C
analogous
#7C5527 #797C27 #4F7C27
triadic
#797C27 #27797C #7C2779
tetradic
#797C27 #277C55 #2A277C #7C274F
square
#797C27 #277C55 #2A277C #7C274F
split-complementary
#797C27 #274F7C #55277C
monochromatic
#1E1F0A #4C4D18 #797C27 #A6AB36 #C5C954
Accessibility & contrast
On white
4.44
#797C27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.73
#797C27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C27
4.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C27 | 1.00 | 4.44 | 4.73 | 4.73 |
| #FFFFFF | 4.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86761B
Deuteranopia (green-blind)
#86792D
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #797c27; /* rgb */ color: rgb(121, 124, 39); /* oklch */ color: oklch(56.7% 0.106 111.3);
Tailwind
colors: {
custom: {
50: '#a2a166',
500: '#797c27',
950: '#000000',
},
}SCSS
$custom: #797c27; $custom-light: #a2a166; $custom-dark: #000000;
JSON
{
"hex": "#797c27",
"rgb": {
"r": 121,
"g": 124,
"b": 39
},
"hsl": {
"h": 62.118,
"s": 52.147,
"l": 31.961
},
"oklch": {
"l": 0.56676,
"c": 0.10643,
"h": 111.3
},
"luminance": 0.18627
}Semantic roles & 50–950 ramp
primary
#797C27
secondary
#5451AE
accent
#4CDC51
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A