#797F12#797F12
#797F12 is a mid, vivid yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.122 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #797F12 |
|---|---|
| RGB | rgb(121, 127, 18) |
| HSL | hsl(63, 75%, 28%) |
| HSV | hsv(63, 86%, 50%) |
| CMYK | cmyk(4.7%, 0%, 85.8%, 50.2%) |
| CIE-LAB | lab(51.02, -15.22, 52.12) |
| CIE-LCH | lch(51.02, 54.30, 106.28°) |
| OKLab | oklab(57.26% -0.0478 0.1124) |
| OKLCH | oklch(57.26% 0.122 113.1) |
| XYZ | xyz(15.5842, 19.2877, 3.4741) |
| Luminance | 0.1929 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.52
Olive
#808000
ΔE00 2.44
Poop Green
#6F7C00
ΔE00 2.52
Swamp Green
#748500
ΔE00 3.22
Murky Green
#6C7A0E
ΔE00 3.41
Olive (survey)
#6E750E
ΔE00 4.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#797F12 #18127F
analogous
#7F4E12 #797F12 #427F12
triadic
#797F12 #12797F #7F1279
tetradic
#797F12 #127F4E #18127F #7F1242
square
#797F12 #127F4E #18127F #7F1242
split-complementary
#797F12 #12427F #4E127F
monochromatic
#1A1B04 #46490A #797F12 #ACB51A #D7E12B
Accessibility & contrast
On white
4.32
#797F12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.86
#797F12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #797F12
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##797F12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##797F12 | 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)
#897800
Deuteranopia (green-blind)
#897B1E
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #797f12; /* rgb */ color: rgb(121, 127, 18); /* oklch */ color: oklch(57.3% 0.122 113.1);
Tailwind
colors: {
custom: {
50: '#a3a35d',
500: '#797f12',
950: '#000000',
},
}SCSS
$custom: #797f12; $custom-light: #a3a35d; $custom-dark: #000000;
JSON
{
"hex": "#797f12",
"rgb": {
"r": 121,
"g": 127,
"b": 18
},
"hsl": {
"h": 63.303,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.57257,
"c": 0.12212,
"h": 113.1
},
"luminance": 0.19287
}Semantic roles & 50–950 ramp
primary
#797F12
secondary
#3F38B5
accent
#36F240
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79