#8C781D#8C781D

#8C781D is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.5% C 0.108 H 96.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8C781D
RGBrgb(140, 120, 29)
HSLhsl(49, 66%, 33%)
HSVhsv(49, 79%, 55%)
CMYKcmyk(0%, 14.3%, 79.3%, 45.1%)
CIE-LABlab(50.80, -2.12, 49.17)
CIE-LCHlch(50.80, 49.22, 92.47°)
OKLaboklab(57.52% -0.0113 0.1073)
OKLCHoklch(57.52% 0.108 96)
XYZxyz(17.7544, 19.0981, 3.9133)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C781D #1D318C
analogous
#8C401D #8C781D #688C1D
triadic
#8C781D #1D8C78 #781D8C
tetradic
#8C781D #1D8C40 #1D318C #8C1D68
square
#8C781D #1D8C40 #1D318C #8C1D68
split-complementary
#8C781D #1D688C #401D8C
monochromatic
#272108 #594D12 #8C781D #BFA328 #D9C04A

Accessibility & contrast

On white

4.36
#8C781D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8C781D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C781D
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C781D#FFFFFF#000000##000000
##8C781D1.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)
#857509
Deuteranopia (green-blind)
#8A7C23
Tritanopia (blue-blind)
#986E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8c781d;
/* rgb */ color: rgb(140, 120, 29);
/* oklch */ color: oklch(57.5% 0.108 96.0);
Tailwind
colors: {
  custom: {
    50: '#b19e61',
    500: '#8c781d',
    950: '#000000',
  },
}
SCSS
$custom: #8c781d;
$custom-light: #b19e61;
$custom-dark: #000000;
JSON
{
  "hex": "#8c781d",
  "rgb": {
    "r": 140,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 49.189,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5752,
    "c": 0.1079,
    "h": 96
  },
  "luminance": 0.19097
}

Semantic roles & 50–950 ramp

primary
#8C781D
secondary
#495EBC
accent
#5EE93F
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8C781D

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

Preview Lab → · Contrast checker → · Palette generator →

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