#8C781B#8C781B
#8C781B is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.5% C 0.109 H 96.2°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #8C781B |
|---|---|
| RGB | rgb(140, 120, 27) |
| HSL | hsl(49, 68%, 33%) |
| HSV | hsv(49, 81%, 55%) |
| CMYK | cmyk(0%, 14.3%, 80.7%, 45.1%) |
| CIE-LAB | lab(50.79, -2.20, 49.87) |
| CIE-LCH | lch(50.79, 49.92, 92.52°) |
| OKLab | oklab(57.51% -0.0117 0.1084) |
| OKLCH | oklch(57.51% 0.109 96.2) |
| XYZ | xyz(17.7305, 19.0885, 3.7872) |
| Luminance | 0.1909 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Hazel
#8E7618
ΔE00 1.41
Baby Poop
#937C00
ΔE00 2.96
Poo
#8F7303
ΔE00 3.14
Puke Brown
#947706
ΔE00 3.17
Ugly Brown
#7D7103
ΔE00 4.39
Yellowish Brown
#9B7A01
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C781B #1B2F8C
analogous
#8C401B #8C781B #678C1B
triadic
#8C781B #1B8C78 #781B8C
tetradic
#8C781B #1B8C40 #1B2F8C #8C1B67
square
#8C781B #1B8C40 #1B2F8C #8C1B67
split-complementary
#8C781B #1B678C #401B8C
monochromatic
#252007 #594C11 #8C781B #BFA425 #DBC146
Accessibility & contrast
On white
4.36
#8C781B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#8C781B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8C781B
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C781B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8C781B | 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)
#857505
Deuteranopia (green-blind)
#8A7C21
Tritanopia (blue-blind)
#986E67
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #8c781b; /* rgb */ color: rgb(140, 120, 27); /* oklch */ color: oklch(57.5% 0.109 96.2);
Tailwind
colors: {
custom: {
50: '#b19e60',
500: '#8c781b',
950: '#000000',
},
}SCSS
$custom: #8c781b; $custom-light: #b19e60; $custom-dark: #000000;
JSON
{
"hex": "#8c781b",
"rgb": {
"r": 140,
"g": 120,
"b": 27
},
"hsl": {
"h": 49.381,
"s": 67.665,
"l": 32.745
},
"oklch": {
"l": 0.57508,
"c": 0.109,
"h": 96.2
},
"luminance": 0.19088
}Semantic roles & 50–950 ramp
primary
#8C781B
secondary
#465BBD
accent
#5CEB3D
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79