#8A7D2D#8A7D2D

#8A7D2D is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.101 H 100.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A7D2D
RGBrgb(138, 125, 45)
HSLhsl(52, 51%, 36%)
HSVhsv(52, 67%, 54%)
CMYKcmyk(0%, 9.4%, 67.4%, 45.9%)
CIE-LABlab(52.13, -5.01, 43.85)
CIE-LCHlch(52.13, 44.14, 96.51°)
OKLaboklab(58.56% -0.0175 0.0992)
OKLCHoklch(58.56% 0.101 100)
XYZxyz(18.2893, 20.2608, 5.4295)
Luminance0.2026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D2D #2D3A8A
analogous
#8A4E2D #8A7D2D #688A2D
triadic
#8A7D2D #2D8A7D #7D2D8A
tetradic
#8A7D2D #2D8A4E #2D3A8A #8A2D68
square
#8A7D2D #2D8A4E #2D3A8A #8A2D68
split-complementary
#8A7D2D #2D688A #4E2D8A
monochromatic
#2E290F #5C531E #8A7D2D #B8A73C #CDBE65

Accessibility & contrast

On white

4.16
#8A7D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8A7D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D2D
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D2D#FFFFFF#000000##000000
##8A7D2D1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A23
Deuteranopia (green-blind)
#8C7E31
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d2d;
/* rgb */ color: rgb(138, 125, 45);
/* oklch */ color: oklch(58.6% 0.101 100.0);
Tailwind
colors: {
  custom: {
    50: '#afa26a',
    500: '#8a7d2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d2d;
$custom-light: #afa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d2d",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 51.613,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.58563,
    "c": 0.10075,
    "h": 100
  },
  "luminance": 0.2026
}

Semantic roles & 50–950 ramp

primary
#8A7D2D
secondary
#606BB3
accent
#61DA4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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