#787F12#787F12
#787F12 is a mid, vivid yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.122 H 113.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #787F12 |
|---|---|
| RGB | rgb(120, 127, 18) |
| HSL | hsl(64, 75%, 28%) |
| HSV | hsv(64, 86%, 50%) |
| CMYK | cmyk(5.5%, 0%, 85.8%, 50.2%) |
| CIE-LAB | lab(50.94, -15.68, 52.02) |
| CIE-LCH | lch(50.94, 54.33, 106.78°) |
| OKLab | oklab(57.17% -0.0491 0.1122) |
| OKLCH | oklch(57.17% 0.122 113.6) |
| XYZ | xyz(15.4448, 19.2158, 3.4676) |
| Luminance | 0.1921 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.34
Poop Green
#6F7C00
ΔE00 2.28
Olive
#808000
ΔE00 2.71
Swamp Green
#748500
ΔE00 3.05
Murky Green
#6C7A0E
ΔE00 3.17
Olive (survey)
#6E750E
ΔE00 3.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787F12 #19127F
analogous
#7F4F12 #787F12 #417F12
triadic
#787F12 #12787F #7F1278
tetradic
#787F12 #127F4F #19127F #7F1241
square
#787F12 #127F4F #19127F #7F1241
split-complementary
#787F12 #12417F #4F127F
monochromatic
#191B04 #45490A #787F12 #ABB51A #D5E12B
Accessibility & contrast
On white
4.34
#787F12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.84
#787F12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787F12
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787F12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787F12 | 1.00 | 4.34 | 4.84 | 4.84 |
| #FFFFFF | 4.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897A1E
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787f12; /* rgb */ color: rgb(120, 127, 18); /* oklch */ color: oklch(57.2% 0.122 113.6);
Tailwind
colors: {
custom: {
50: '#a2a35d',
500: '#787f12',
950: '#000000',
},
}SCSS
$custom: #787f12; $custom-light: #a2a35d; $custom-dark: #000000;
JSON
{
"hex": "#787f12",
"rgb": {
"r": 120,
"g": 127,
"b": 18
},
"hsl": {
"h": 63.853,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.5717,
"c": 0.12243,
"h": 113.6
},
"luminance": 0.19215
}Semantic roles & 50–950 ramp
primary
#787F12
secondary
#4038B5
accent
#36F242
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79