#797F15#797F15
#797F15 is a mid, vivid yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.121 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #797F15 |
|---|---|
| RGB | rgb(121, 127, 21) |
| HSL | hsl(63, 72%, 29%) |
| HSV | hsv(63, 83%, 50%) |
| CMYK | cmyk(4.7%, 0%, 83.5%, 50.2%) |
| CIE-LAB | lab(51.03, -15.12, 51.31) |
| CIE-LCH | lch(51.03, 53.50, 106.42°) |
| OKLab | oklab(57.27% -0.0474 0.1112) |
| OKLCH | oklch(57.27% 0.121 113.1) |
| XYZ | xyz(15.6104, 19.2982, 3.6119) |
| Luminance | 0.1930 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.66
Poop Green
#6F7C00
ΔE00 2.56
Olive
#808000
ΔE00 2.61
Swamp Green
#748500
ΔE00 3.28
Murky Green
#6C7A0E
ΔE00 3.37
Olive (survey)
#6E750E
ΔE00 4.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F15 #1B157F
analogous
#7F5015 #797F15 #447F15
triadic
#797F15 #15797F #7F1579
tetradic
#797F15 #157F50 #1B157F #7F1544
square
#797F15 #157F50 #1B157F #7F1544
split-complementary
#797F15 #15447F #50157F
monochromatic
#191A04 #474A0C #797F15 #ABB41E #D3DD31
Accessibility & contrast
On white
4.32
#797F15 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#797F15 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F15
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F15 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F15 | 1.00 | 4.32 | 4.86 | 4.86 |
| #FFFFFF | 4.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#897B20
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #797f15; /* rgb */ color: rgb(121, 127, 21); /* oklch */ color: oklch(57.3% 0.121 113.1);
Tailwind
colors: {
custom: {
50: '#a3a35e',
500: '#797f15',
950: '#000000',
},
}SCSS
$custom: #797f15; $custom-light: #a3a35e; $custom-dark: #000000;
JSON
{
"hex": "#797f15",
"rgb": {
"r": 121,
"g": 127,
"b": 21
},
"hsl": {
"h": 63.396,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.57271,
"c": 0.12082,
"h": 113.1
},
"luminance": 0.19298
}Semantic roles & 50–950 ramp
primary
#797F15
secondary
#433CB4
accent
#39EE44
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79