#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
RGBrgb(140, 120, 27)
HSLhsl(49, 68%, 33%)
HSVhsv(49, 81%, 55%)
CMYKcmyk(0%, 14.3%, 80.7%, 45.1%)
CIE-LABlab(50.79, -2.20, 49.87)
CIE-LCHlch(50.79, 49.92, 92.52°)
OKLaboklab(57.51% -0.0117 0.1084)
OKLCHoklch(57.51% 0.109 96.2)
XYZxyz(17.7305, 19.0885, 3.7872)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

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
##8C781B1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.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

Preview Lab

Preview with #8C781B

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8C781B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva