#8D781A#8D781A

#8D781A is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.6% C 0.110 H 95.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8D781A
RGBrgb(141, 120, 26)
HSLhsl(49, 69%, 33%)
HSVhsv(49, 82%, 55%)
CMYKcmyk(0%, 14.9%, 81.6%, 44.7%)
CIE-LABlab(50.89, -1.77, 50.34)
CIE-LCHlch(50.89, 50.37, 92.01°)
OKLaboklab(57.61% -0.0106 0.1091)
OKLCHoklch(57.61% 0.11 95.6)
XYZxyz(17.8884, 19.1713, 3.7353)
Luminance0.1917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D781A #1A2F8D
analogous
#8D3E1A #8D781A #698D1A
triadic
#8D781A #1A8D78 #781A8D
tetradic
#8D781A #1A8D3E #1A2F8D #8D1A69
square
#8D781A #1A8D3E #1A2F8D #8D1A69
split-complementary
#8D781A #1A698D #3E1A8D
monochromatic
#262007 #594C10 #8D781A #C1A424 #DDC145

Accessibility & contrast

On white

4.34
#8D781A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#8D781A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D781A
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D781A#FFFFFF#000000##000000
##8D781A1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#857503
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#996E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8d781a;
/* rgb */ color: rgb(141, 120, 26);
/* oklch */ color: oklch(57.6% 0.110 95.6);
Tailwind
colors: {
  custom: {
    50: '#b29e60',
    500: '#8d781a',
    950: '#000000',
  },
}
SCSS
$custom: #8d781a;
$custom-light: #b29e60;
$custom-dark: #000000;
JSON
{
  "hex": "#8d781a",
  "rgb": {
    "r": 141,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 49.043,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57606,
    "c": 0.10962,
    "h": 95.6
  },
  "luminance": 0.1917
}

Semantic roles & 50–950 ramp

primary
#8D781A
secondary
#455BBE
accent
#5CEC3C
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#110E05
muted
#807E79

Preview Lab

Preview with #8D781A

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

Preview Lab → · Contrast checker → · Palette generator →

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