#8A782D#8A782D

#8A782D is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.4% C 0.097 H 95.6°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A782D
RGBrgb(138, 120, 45)
HSLhsl(48, 51%, 36%)
HSVhsv(48, 67%, 54%)
CMYKcmyk(0%, 13%, 67.4%, 45.9%)
CIE-LABlab(50.72, -2.20, 42.36)
CIE-LCHlch(50.72, 42.42, 92.97°)
OKLaboklab(57.44% -0.0095 0.0961)
OKLCHoklch(57.44% 0.097 95.6)
XYZxyz(17.6722, 19.0266, 5.2238)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A782D #2D3F8A
analogous
#8A492D #8A782D #6D8A2D
triadic
#8A782D #2D8A78 #782D8A
tetradic
#8A782D #2D8A49 #2D3F8A #8A2D6D
square
#8A782D #2D8A49 #2D3F8A #8A2D6D
split-complementary
#8A782D #2D6D8A #492D8A
monochromatic
#2E280F #5C501E #8A782D #B8A03C #CDB965

Accessibility & contrast

On white

4.37
#8A782D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8A782D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A782D
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A782D#FFFFFF#000000##000000
##8A782D1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847524
Deuteranopia (green-blind)
#897B31
Tritanopia (blue-blind)
#956F68
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a782d;
/* rgb */ color: rgb(138, 120, 45);
/* oklch */ color: oklch(57.4% 0.097 95.6);
Tailwind
colors: {
  custom: {
    50: '#af9e6a',
    500: '#8a782d',
    950: '#000000',
  },
}
SCSS
$custom: #8a782d;
$custom-light: #af9e6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a782d",
  "rgb": {
    "r": 138,
    "g": 120,
    "b": 45
  },
  "hsl": {
    "h": 48.387,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57444,
    "c": 0.09652,
    "h": 95.6
  },
  "luminance": 0.19026
}

Semantic roles & 50–950 ramp

primary
#8A782D
secondary
#6070B3
accent
#69DA4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E07
muted
#807E7A

Preview Lab

Preview with #8A782D

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

Preview Lab → · Contrast checker → · Palette generator →

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