#8A7D2C#8A7D2C

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

Color values

HEX#8A7D2C
RGBrgb(138, 125, 44)
HSLhsl(52, 52%, 36%)
HSVhsv(52, 68%, 54%)
CMYKcmyk(0%, 9.4%, 68.1%, 45.9%)
CIE-LABlab(52.12, -5.07, 44.29)
CIE-LCHlch(52.12, 44.58, 96.53°)
OKLaboklab(58.55% -0.0178 0.1)
OKLCHoklch(58.55% 0.102 100.1)
XYZxyz(18.2703, 20.2532, 5.3293)
Luminance0.2025 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D2C #2C398A
analogous
#8A4E2C #8A7D2C #688A2C
triadic
#8A7D2C #2C8A7D #7D2C8A
tetradic
#8A7D2C #2C8A4E #2C398A #8A2C68
square
#8A7D2C #2C8A4E #2C398A #8A2C68
split-complementary
#8A7D2C #2C688A #4E2C8A
monochromatic
#2D290E #5C531D #8A7D2C #B8A73B #CDBF63

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7D2C#FFFFFF#000000##000000
##8A7D2C1.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)
#897922
Deuteranopia (green-blind)
#8C7E31
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d2c;
/* rgb */ color: rgb(138, 125, 44);
/* oklch */ color: oklch(58.6% 0.102 100.1);
Tailwind
colors: {
  custom: {
    50: '#afa26a',
    500: '#8a7d2c',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d2c;
$custom-light: #afa26a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d2c",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 51.702,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58554,
    "c": 0.10155,
    "h": 100.1
  },
  "luminance": 0.20252
}

Semantic roles & 50–950 ramp

primary
#8A7D2C
secondary
#5E6AB4
accent
#60DB4D
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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