#797F26#797F26
#797F26 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.111 H 113.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).
Color values
| HEX | #797F26 |
|---|---|
| RGB | rgb(121, 127, 38) |
| HSL | hsl(64, 54%, 32%) |
| HSV | hsv(64, 70%, 50%) |
| CMYK | cmyk(4.7%, 0%, 70.1%, 50.2%) |
| CIE-LAB | lab(51.13, -14.30, 45.39) |
| CIE-LCH | lch(51.13, 47.59, 107.49°) |
| OKLab | oklab(57.38% -0.0435 0.1018) |
| OKLCH | oklch(57.38% 0.111 113.1) |
| XYZ | xyz(15.8248, 19.3840, 4.7412) |
| Luminance | 0.1938 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 3.22
Poop Green
#6F7C00
ΔE00 3.54
Murky Green
#6C7A0E
ΔE00 3.62
Olive
#808000
ΔE00 4.13
Swamp Green
#748500
ΔE00 4.25
Olive (survey)
#6E750E
ΔE00 4.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F26 #2C267F
analogous
#7F5926 #797F26 #4D7F26
triadic
#797F26 #26797F #7F2679
tetradic
#797F26 #267F59 #2C267F #7F264D
square
#797F26 #267F59 #2C267F #7F264D
split-complementary
#797F26 #264D7F #59267F
monochromatic
#1F210A #4C5018 #797F26 #A6AE34 #C4CC54
Accessibility & contrast
On white
4.31
#797F26 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.88
#797F26 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F26
4.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F26 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F26 | 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)
#897919
Deuteranopia (green-blind)
#897B2C
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f26; /* rgb */ color: rgb(121, 127, 38); /* oklch */ color: oklch(57.4% 0.111 113.1);
Tailwind
colors: {
custom: {
50: '#a2a466',
500: '#797f26',
950: '#000000',
},
}SCSS
$custom: #797f26; $custom-light: #a2a466; $custom-dark: #000000;
JSON
{
"hex": "#797f26",
"rgb": {
"r": 121,
"g": 127,
"b": 38
},
"hsl": {
"h": 64.045,
"s": 53.939,
"l": 32.353
},
"oklch": {
"l": 0.57382,
"c": 0.11068,
"h": 113.1
},
"luminance": 0.19384
}Semantic roles & 50–950 ramp
primary
#797F26
secondary
#5751B0
accent
#4ADD54
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A