#8A7D2E#8A7D2E

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

Color values

HEX#8A7D2E
RGBrgb(138, 125, 46)
HSLhsl(52, 50%, 36%)
HSVhsv(52, 67%, 54%)
CMYKcmyk(0%, 9.4%, 66.7%, 45.9%)
CIE-LABlab(52.14, -4.94, 43.41)
CIE-LCHlch(52.14, 43.69, 96.49°)
OKLaboklab(58.57% -0.0172 0.0984)
OKLCHoklch(58.57% 0.1 99.9)
XYZxyz(18.3088, 20.2686, 5.5321)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D2E #2E3B8A
analogous
#8A4F2E #8A7D2E #698A2E
triadic
#8A7D2E #2E8A7D #7D2E8A
tetradic
#8A7D2E #2E8A4F #2E3B8A #8A2E69
square
#8A7D2E #2E8A4F #2E3B8A #8A2E69
split-complementary
#8A7D2E #2E698A #4F2E8A
monochromatic
#2E2A0F #5C531F #8A7D2E #B8A73D #CCBE66

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7D2E#FFFFFF#000000##000000
##8A7D2E1.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)
#897A24
Deuteranopia (green-blind)
#8C7E32
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d2e;
/* rgb */ color: rgb(138, 125, 46);
/* oklch */ color: oklch(58.6% 0.100 99.9);
Tailwind
colors: {
  custom: {
    50: '#afa26b',
    500: '#8a7d2e',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d2e;
$custom-light: #afa26b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d2e",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 51.522,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.58573,
    "c": 0.09992,
    "h": 99.9
  },
  "luminance": 0.20268
}

Semantic roles & 50–950 ramp

primary
#8A7D2E
secondary
#616CB3
accent
#62DA4E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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