#797C15#797C15
#797C15 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.118 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #797C15 |
|---|---|
| RGB | rgb(121, 124, 21) |
| HSL | hsl(62, 71%, 28%) |
| HSV | hsv(62, 83%, 49%) |
| CMYK | cmyk(2.4%, 0%, 83.1%, 51.4%) |
| CIE-LAB | lab(50.14, -13.51, 50.53) |
| CIE-LCH | lch(50.14, 52.31, 104.97°) |
| OKLab | oklab(56.55% -0.0429 0.1095) |
| OKLCH | oklch(56.55% 0.118 111.4) |
| XYZ | xyz(15.2287, 18.5348, 3.4847) |
| Luminance | 0.1853 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 2.58
Olive
#808000
ΔE00 2.70
Poop Green
#6F7C00
ΔE00 2.86
Olive (survey)
#6E750E
ΔE00 3.25
Murky Green
#6C7A0E
ΔE00 3.43
Swamp Green
#748500
ΔE00 4.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797C15 #18157C
analogous
#7C4B15 #797C15 #457C15
triadic
#797C15 #15797C #7C1579
tetradic
#797C15 #157C4B #18157C #7C1545
square
#797C15 #157C4B #18157C #7C1545
split-complementary
#797C15 #15457C #4B157C
monochromatic
#1A1A04 #46480C #797C15 #ACB01E #D7DC30
Accessibility & contrast
On white
4.46
#797C15 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.71
#797C15 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797C15
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797C15 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797C15 | 1.00 | 4.46 | 4.71 | 4.71 |
| #FFFFFF | 4.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#87781F
Tritanopia (blue-blind)
#827469
Achromatopsia (no color)
#777777
Design tokens & code
CSS
--color: #797c15; /* rgb */ color: rgb(121, 124, 21); /* oklch */ color: oklch(56.6% 0.118 111.4);
Tailwind
colors: {
custom: {
50: '#a3a15e',
500: '#797c15',
950: '#000000',
},
}SCSS
$custom: #797c15; $custom-light: #a3a15e; $custom-dark: #000000;
JSON
{
"hex": "#797c15",
"rgb": {
"r": 121,
"g": 124,
"b": 21
},
"hsl": {
"h": 61.748,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.56553,
"c": 0.11759,
"h": 111.4
},
"luminance": 0.18534
}Semantic roles & 50–950 ramp
primary
#797C15
secondary
#3F3CB1
accent
#3AEE3F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79