#8A7D34#8A7D34

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

Color values

HEX#8A7D34
RGBrgb(138, 125, 52)
HSLhsl(51, 45%, 37%)
HSVhsv(51, 62%, 54%)
CMYKcmyk(0%, 9.4%, 62.3%, 45.9%)
CIE-LABlab(52.20, -4.52, 40.64)
CIE-LCHlch(52.20, 40.89, 96.35°)
OKLaboklab(58.64% -0.0153 0.0935)
OKLCHoklch(58.64% 0.095 99.3)
XYZxyz(18.4354, 20.3192, 6.1991)
Luminance0.2032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D34 #34418A
analogous
#8A5234 #8A7D34 #6C8A34
triadic
#8A7D34 #348A7D #7D348A
tetradic
#8A7D34 #348A52 #34418A #8A346C
square
#8A7D34 #348A52 #34418A #8A346C
split-complementary
#8A7D34 #346C8A #52348A
monochromatic
#312C13 #5E5523 #8A7D34 #B6A545 #C9BB6F

Accessibility & contrast

On white

4.15
#8A7D34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8A7D34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D34
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D34#FFFFFF#000000##000000
##8A7D341.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#887A2C
Deuteranopia (green-blind)
#8C7F38
Tritanopia (blue-blind)
#94746D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d34;
/* rgb */ color: rgb(138, 125, 52);
/* oklch */ color: oklch(58.6% 0.095 99.3);
Tailwind
colors: {
  custom: {
    50: '#afa26f',
    500: '#8a7d34',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d34;
$custom-light: #afa26f;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d34",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 52
  },
  "hsl": {
    "h": 50.93,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.58636,
    "c": 0.09472,
    "h": 99.3
  },
  "luminance": 0.20318
}

Semantic roles & 50–950 ramp

primary
#8A7D34
secondary
#6974B1
accent
#67D553
background
#FBF9F6
surface
#F6F2EC
border
#D0CCC7
text
#110F07
muted
#807E7A

Preview Lab

Preview with #8A7D34

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

Preview Lab → · Contrast checker → · Palette generator →

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