#8A7F32#8A7F32

#8A7F32 is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.098 H 101.2°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A7F32
RGBrgb(138, 127, 50)
HSLhsl(53, 47%, 37%)
HSVhsv(53, 64%, 54%)
CMYKcmyk(0%, 8%, 63.8%, 45.9%)
CIE-LABlab(52.74, -5.78, 42.20)
CIE-LCHlch(52.74, 42.59, 97.80°)
OKLaboklab(59.07% -0.0191 0.0965)
OKLCHoklch(59.07% 0.098 101.2)
XYZxyz(18.6471, 20.8131, 6.0521)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F32 #323D8A
analogous
#8A5332 #8A7F32 #698A32
triadic
#8A7F32 #328A7F #7F328A
tetradic
#8A7F32 #328A53 #323D8A #8A3269
square
#8A7F32 #328A53 #323D8A #8A3269
split-complementary
#8A7F32 #32698A #53328A
monochromatic
#302C11 #5D5622 #8A7F32 #B7A842 #CABE6C

Accessibility & contrast

On white

4.07
#8A7F32 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#8A7F32 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F32
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F32#FFFFFF#000000##000000
##8A7F321.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B29
Deuteranopia (green-blind)
#8E8036
Tritanopia (blue-blind)
#94766F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f32;
/* rgb */ color: rgb(138, 127, 50);
/* oklch */ color: oklch(59.1% 0.098 101.2);
Tailwind
colors: {
  custom: {
    50: '#afa36d',
    500: '#8a7f32',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f32;
$custom-light: #afa36d;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f32",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 50
  },
  "hsl": {
    "h": 52.5,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.59065,
    "c": 0.09837,
    "h": 101.2
  },
  "luminance": 0.20812
}

Semantic roles & 50–950 ramp

primary
#8A7F32
secondary
#6670B2
accent
#62D651
background
#FBFAF6
surface
#F6F3EC
border
#D0CDC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A7F32

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

Preview Lab → · Contrast checker → · Palette generator →

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