#8A7D2B#8A7D2B

#8A7D2B is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.102 H 100.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A7D2B
RGBrgb(138, 125, 43)
HSLhsl(52, 52%, 35%)
HSVhsv(52, 69%, 54%)
CMYKcmyk(0%, 9.4%, 68.8%, 45.9%)
CIE-LABlab(52.11, -5.13, 44.73)
CIE-LCHlch(52.11, 45.02, 96.54°)
OKLaboklab(58.54% -0.0181 0.1007)
OKLCHoklch(58.54% 0.102 100.2)
XYZxyz(18.2517, 20.2457, 5.2315)
Luminance0.2024 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D2B #2B388A
analogous
#8A4D2B #8A7D2B #688A2B
triadic
#8A7D2B #2B8A7D #7D2B8A
tetradic
#8A7D2B #2B8A4D #2B388A #8A2B68
square
#8A7D2B #2B8A4D #2B388A #8A2B68
split-complementary
#8A7D2B #2B688A #4D2B8A
monochromatic
#2D280E #5B531C #8A7D2B #B9A73A #CEBF61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7D2B#FFFFFF#000000##000000
##8A7D2B1.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)
#897920
Deuteranopia (green-blind)
#8D7E30
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d2b;
/* rgb */ color: rgb(138, 125, 43);
/* oklch */ color: oklch(58.5% 0.102 100.2);
Tailwind
colors: {
  custom: {
    50: '#afa269',
    500: '#8a7d2b',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d2b;
$custom-light: #afa269;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d2b",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 43
  },
  "hsl": {
    "h": 51.789,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58544,
    "c": 0.10234,
    "h": 100.2
  },
  "luminance": 0.20245
}

Semantic roles & 50–950 ramp

primary
#8A7D2B
secondary
#5D69B4
accent
#60DC4C
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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