#8A781D#8A781D

#8A781D is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.3% C 0.108 H 97.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A781D
RGBrgb(138, 120, 29)
HSLhsl(50, 65%, 33%)
HSVhsv(50, 79%, 54%)
CMYKcmyk(0%, 13%, 79%, 45.9%)
CIE-LABlab(50.60, -3.05, 48.91)
CIE-LCHlch(50.60, 49.01, 93.57°)
OKLaboklab(57.31% -0.0138 0.1069)
OKLCHoklch(57.31% 0.108 97.4)
XYZxyz(17.4204, 18.9258, 3.8976)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A781D #1D2F8A
analogous
#8A421D #8A781D #658A1D
triadic
#8A781D #1D8A78 #781D8A
tetradic
#8A781D #1D8A42 #1D2F8A #8A1D65
square
#8A781D #1D8A42 #1D2F8A #8A1D65
split-complementary
#8A781D #1D658A #421D8A
monochromatic
#252008 #574C12 #8A781D #BDA428 #D9C149

Accessibility & contrast

On white

4.39
#8A781D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8A781D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A781D
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A781D#FFFFFF#000000##000000
##8A781D1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750A
Deuteranopia (green-blind)
#8A7B23
Tritanopia (blue-blind)
#956E67
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a781d;
/* rgb */ color: rgb(138, 120, 29);
/* oklch */ color: oklch(57.3% 0.108 97.4);
Tailwind
colors: {
  custom: {
    50: '#b09e61',
    500: '#8a781d',
    950: '#000000',
  },
}
SCSS
$custom: #8a781d;
$custom-light: #b09e61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a781d",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 29
  },
  "hsl": {
    "h": 50.092,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57313,
    "c": 0.10774,
    "h": 97.4
  },
  "luminance": 0.18925
}

Semantic roles & 50–950 ramp

primary
#8A781D
secondary
#485BBB
accent
#5BE840
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8A781D

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

Preview Lab → · Contrast checker → · Palette generator →

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