#787E2A#787E2A
#787E2A is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.107 H 113.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #787E2A |
|---|---|
| RGB | rgb(120, 126, 42) |
| HSL | hsl(64, 50%, 33%) |
| HSV | hsv(64, 67%, 49%) |
| CMYK | cmyk(4.8%, 0%, 66.7%, 50.6%) |
| CIE-LAB | lab(50.78, -13.96, 43.28) |
| CIE-LCH | lch(50.78, 45.48, 107.87°) |
| OKLab | oklab(57.09% -0.042 0.098) |
| OKLCH | oklch(57.09% 0.107 113.2) |
| XYZ | xyz(15.6249, 19.0823, 5.0502) |
| Luminance | 0.1908 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Murky Green
#6C7A0E
ΔE00 3.71
Shit Green
#758000
ΔE00 3.88
Poop Green
#6F7C00
ΔE00 3.92
Olive Drab
#6F7632
ΔE00 4.09
Olive (survey)
#6E750E
ΔE00 4.21
Drab
#828344
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#787E2A #302A7E
analogous
#7E5A2A #787E2A #4E7E2A
triadic
#787E2A #2A787E #7E2A78
tetradic
#787E2A #2A7E5A #302A7E #7E2A4E
square
#787E2A #2A7E5A #302A7E #7E2A4E
split-complementary
#787E2A #2A4E7E #5A2A7E
monochromatic
#21220B #4C501B #787E2A #A4AC39 #C0C85A
Accessibility & contrast
On white
4.36
#787E2A on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#787E2A on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #787E2A
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##787E2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##787E2A | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#87781F
Deuteranopia (green-blind)
#877A30
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #787e2a; /* rgb */ color: rgb(120, 126, 42); /* oklch */ color: oklch(57.1% 0.107 113.2);
Tailwind
colors: {
custom: {
50: '#a1a368',
500: '#787e2a',
950: '#000000',
},
}SCSS
$custom: #787e2a; $custom-light: #a1a368; $custom-dark: #000000;
JSON
{
"hex": "#787e2a",
"rgb": {
"r": 120,
"g": 126,
"b": 42
},
"hsl": {
"h": 64.286,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.57091,
"c": 0.10667,
"h": 113.2
},
"luminance": 0.19082
}Semantic roles & 50–950 ramp
primary
#787E2A
secondary
#5C56AE
accent
#4EDA58
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A