#787D12#787D12
#787D12 is a mid, vivid yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.120 H 112.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #787D12 |
|---|---|
| RGB | rgb(120, 125, 18) |
| HSL | hsl(63, 75%, 28%) |
| HSV | hsv(63, 86%, 49%) |
| CMYK | cmyk(4%, 0%, 85.6%, 51%) |
| CIE-LAB | lab(50.34, -14.61, 51.51) |
| CIE-LCH | lch(50.34, 53.54, 105.84°) |
| OKLab | oklab(56.69% -0.0461 0.1111) |
| OKLCH | oklch(56.69% 0.12 112.5) |
| XYZ | xyz(15.1891, 18.7043, 3.3823) |
| Luminance | 0.1870 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.94
Poop Green
#6F7C00
ΔE00 2.37
Olive
#808000
ΔE00 2.67
Murky Green
#6C7A0E
ΔE00 3.11
Olive (survey)
#6E750E
ΔE00 3.36
Swamp Green
#748500
ΔE00 3.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787D12 #17127D
analogous
#7D4C12 #787D12 #427D12
triadic
#787D12 #12787D #7D1278
tetradic
#787D12 #127D4C #17127D #7D1242
square
#787D12 #127D4C #17127D #7D1242
split-complementary
#787D12 #12427D #4C127D
monochromatic
#1A1B04 #45480A #787D12 #ABB21A #D8E029
Accessibility & contrast
On white
4.43
#787D12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.74
#787D12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787D12
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787D12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787D12 | 1.00 | 4.43 | 4.74 | 4.74 |
| #FFFFFF | 4.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#87791D
Tritanopia (blue-blind)
#81756A
Achromatopsia (no color)
#787878
Design tokens & code
CSS
--color: #787d12; /* rgb */ color: rgb(120, 125, 18); /* oklch */ color: oklch(56.7% 0.120 112.5);
Tailwind
colors: {
custom: {
50: '#a2a25d',
500: '#787d12',
950: '#000000',
},
}SCSS
$custom: #787d12; $custom-light: #a2a25d; $custom-dark: #000000;
JSON
{
"hex": "#787d12",
"rgb": {
"r": 120,
"g": 125,
"b": 18
},
"hsl": {
"h": 62.804,
"s": 74.825,
"l": 28.039
},
"oklch": {
"l": 0.56689,
"c": 0.12026,
"h": 112.5
},
"luminance": 0.18704
}Semantic roles & 50–950 ramp
primary
#787D12
secondary
#3E38B3
accent
#36F13F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#0F0F05
muted
#7F7E79