#797F27#797F27
#797F27 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.110 H 113.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #797F27 |
|---|---|
| RGB | rgb(121, 127, 39) |
| HSL | hsl(64, 53%, 33%) |
| HSV | hsv(64, 69%, 50%) |
| CMYK | cmyk(4.7%, 0%, 69.3%, 50.2%) |
| CIE-LAB | lab(51.14, -14.24, 44.97) |
| CIE-LCH | lch(51.14, 47.18, 107.57°) |
| OKLab | oklab(57.39% -0.0432 0.1011) |
| OKLCH | oklch(57.39% 0.11 113.2) |
| XYZ | xyz(15.8412, 19.3905, 4.8273) |
| Luminance | 0.1939 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 3.35
Poop Green
#6F7C00
ΔE00 3.64
Murky Green
#6C7A0E
ΔE00 3.68
Olive
#808000
ΔE00 4.25
Olive (survey)
#6E750E
ΔE00 4.31
Swamp Green
#748500
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F27 #2D277F
analogous
#7F5927 #797F27 #4D7F27
triadic
#797F27 #27797F #7F2779
tetradic
#797F27 #277F59 #2D277F #7F274D
square
#797F27 #277F59 #2D277F #7F274D
split-complementary
#797F27 #274D7F #59277F
monochromatic
#20210A #4C5019 #797F27 #A6AE35 #C3CB55
Accessibility & contrast
On white
4.31
#797F27 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#797F27 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F27
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F27 | 1.00 | 4.31 | 4.88 | 4.88 |
| #FFFFFF | 4.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#89791A
Deuteranopia (green-blind)
#897B2D
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f27; /* rgb */ color: rgb(121, 127, 39); /* oklch */ color: oklch(57.4% 0.110 113.2);
Tailwind
colors: {
custom: {
50: '#a2a467',
500: '#797f27',
950: '#000000',
},
}SCSS
$custom: #797f27; $custom-light: #a2a467; $custom-dark: #000000;
JSON
{
"hex": "#797f27",
"rgb": {
"r": 121,
"g": 127,
"b": 39
},
"hsl": {
"h": 64.091,
"s": 53.012,
"l": 32.549
},
"oklch": {
"l": 0.5739,
"c": 0.10993,
"h": 113.2
},
"luminance": 0.1939
}Semantic roles & 50–950 ramp
primary
#797F27
secondary
#5852B0
accent
#4BDC55
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A