#787E12#787E12
#787E12 is a mid, vivid yellow. Relative luminance 0.190; OKLCH L 56.9% C 0.121 H 113.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #787E12 |
|---|---|
| RGB | rgb(120, 126, 18) |
| HSL | hsl(63, 75%, 28%) |
| HSV | hsv(63, 86%, 49%) |
| CMYK | cmyk(4.8%, 0%, 85.7%, 50.6%) |
| CIE-LAB | lab(50.64, -15.15, 51.76) |
| CIE-LCH | lch(50.64, 53.93, 106.31°) |
| OKLab | oklab(56.93% -0.0476 0.1116) |
| OKLCH | oklch(56.93% 0.121 113.1) |
| XYZ | xyz(15.3163, 18.9588, 3.4247) |
| Luminance | 0.1896 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Shit Green
#758000
ΔE00 1.62
Poop Green
#6F7C00
ΔE00 2.29
Olive
#808000
ΔE00 2.66
Murky Green
#6C7A0E
ΔE00 3.11
Swamp Green
#748500
ΔE00 3.44
Olive (survey)
#6E750E
ΔE00 3.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787E12 #18127E
analogous
#7E4E12 #787E12 #427E12
triadic
#787E12 #12787E #7E1278
tetradic
#787E12 #127E4E #18127E #7E1242
square
#787E12 #127E4E #18127E #7E1242
split-complementary
#787E12 #12427E #4E127E
monochromatic
#1A1B04 #45480A #787E12 #ABB41A #D6E12A
Accessibility & contrast
On white
4.38
#787E12 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#787E12 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787E12
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787E12 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787E12 | 1.00 | 4.38 | 4.79 | 4.79 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A1D
Tritanopia (blue-blind)
#81766B
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787e12; /* rgb */ color: rgb(120, 126, 18); /* oklch */ color: oklch(56.9% 0.121 113.1);
Tailwind
colors: {
custom: {
50: '#a2a35d',
500: '#787e12',
950: '#000000',
},
}SCSS
$custom: #787e12; $custom-light: #a2a35d; $custom-dark: #000000;
JSON
{
"hex": "#787e12",
"rgb": {
"r": 120,
"g": 126,
"b": 18
},
"hsl": {
"h": 63.333,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.56929,
"c": 0.12134,
"h": 113.1
},
"luminance": 0.18958
}Semantic roles & 50–950 ramp
primary
#787E12
secondary
#3F38B4
accent
#36F241
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79