#8A8831#8A8831

#8A8831 is a mid, moderate yellow. Relative luminance 0.232; OKLCH L 61.1% C 0.108 H 108.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A8831
RGBrgb(138, 136, 49)
HSLhsl(59, 48%, 37%)
HSVhsv(59, 64%, 54%)
CMYKcmyk(0%, 1.4%, 64.5%, 45.9%)
CIE-LABlab(55.31, -10.78, 45.42)
CIE-LCHlch(55.31, 46.68, 103.35°)
OKLaboklab(61.11% -0.0334 0.1032)
OKLCHoklch(61.11% 0.108 108)
XYZxyz(19.8404, 23.2339, 6.3446)
Luminance0.2323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8831 #31338A
analogous
#8A5C31 #8A8831 #608A31
triadic
#8A8831 #318A88 #88318A
tetradic
#8A8831 #318A5C #31338A #8A3160
square
#8A8831 #318A5C #31338A #8A3160
split-complementary
#8A8831 #31608A #5C318A
monochromatic
#302F11 #5D5B21 #8A8831 #B7B541 #CAC86B

Accessibility & contrast

On white

3.72
#8A8831 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#8A8831 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8831
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8831#FFFFFF#000000##000000
##8A88311.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#938326
Deuteranopia (green-blind)
#948636
Tritanopia (blue-blind)
#947F76
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8831;
/* rgb */ color: rgb(138, 136, 49);
/* oklch */ color: oklch(61.1% 0.108 108.0);
Tailwind
colors: {
  custom: {
    50: '#afaa6e',
    500: '#8a8831',
    950: '#000000',
  },
}
SCSS
$custom: #8a8831;
$custom-light: #afaa6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8831",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 49
  },
  "hsl": {
    "h": 58.652,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61105,
    "c": 0.10844,
    "h": 108
  },
  "luminance": 0.23233
}

Semantic roles & 50–950 ramp

primary
#8A8831
secondary
#6567B2
accent
#54D751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8831

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

Preview Lab → · Contrast checker → · Palette generator →

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