#8A8732#8A8732

#8A8732 is a mid, moderate yellow. Relative luminance 0.230; OKLCH L 60.9% C 0.107 H 107.3°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8A8732
RGBrgb(138, 135, 50)
HSLhsl(58, 47%, 37%)
HSVhsv(58, 64%, 54%)
CMYKcmyk(0%, 2.2%, 63.8%, 45.9%)
CIE-LABlab(55.03, -10.17, 44.67)
CIE-LCHlch(55.03, 45.81, 102.83°)
OKLaboklab(60.89% -0.0316 0.1017)
OKLCHoklch(60.89% 0.107 107.3)
XYZxyz(19.7216, 22.9621, 6.4103)
Luminance0.2296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8732 #32358A
analogous
#8A5B32 #8A8732 #618A32
triadic
#8A8732 #328A87 #87328A
tetradic
#8A8732 #328A5B #32358A #8A3261
square
#8A8732 #328A5B #32358A #8A3261
split-complementary
#8A8732 #32618A #5B328A
monochromatic
#302F11 #5D5B22 #8A8732 #B7B342 #CAC76C

Accessibility & contrast

On white

3.76
#8A8732 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#8A8732 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8732
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8732#FFFFFF#000000##000000
##8A87321.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#928228
Deuteranopia (green-blind)
#948537
Tritanopia (blue-blind)
#947E75
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8732;
/* rgb */ color: rgb(138, 135, 50);
/* oklch */ color: oklch(60.9% 0.107 107.3);
Tailwind
colors: {
  custom: {
    50: '#afa96e',
    500: '#8a8732',
    950: '#000000',
  },
}
SCSS
$custom: #8a8732;
$custom-light: #afa96e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8732",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 50
  },
  "hsl": {
    "h": 57.955,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60885,
    "c": 0.10652,
    "h": 107.3
  },
  "luminance": 0.22962
}

Semantic roles & 50–950 ramp

primary
#8A8732
secondary
#6669B2
accent
#56D651
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A8732

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

Preview Lab → · Contrast checker → · Palette generator →

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