#8A8931#8A8931

#8A8931 is a mid, moderate yellow. Relative luminance 0.235; OKLCH L 61.3% C 0.110 H 108.6°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8A8931
RGBrgb(138, 137, 49)
HSLhsl(59, 48%, 37%)
HSVhsv(59, 64%, 54%)
CMYKcmyk(0%, 0.7%, 64.5%, 45.9%)
CIE-LABlab(55.60, -11.32, 45.72)
CIE-LCHlch(55.60, 47.10, 103.90°)
OKLaboklab(61.33% -0.035 0.1038)
OKLCHoklch(61.33% 0.11 108.6)
XYZxyz(19.9819, 23.5169, 6.3918)
Luminance0.2352 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8931 #31328A
analogous
#8A5D31 #8A8931 #5F8A31
triadic
#8A8931 #318A89 #89318A
tetradic
#8A8931 #318A5D #31328A #8A315F
square
#8A8931 #318A5D #31328A #8A315F
split-complementary
#8A8931 #315F8A #5D318A
monochromatic
#302F11 #5D5C21 #8A8931 #B7B641 #CAC96B

Accessibility & contrast

On white

3.68
#8A8931 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#8A8931 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8931
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8931#FFFFFF#000000##000000
##8A89311.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#948326
Deuteranopia (green-blind)
#958736
Tritanopia (blue-blind)
#948077
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8931;
/* rgb */ color: rgb(138, 137, 49);
/* oklch */ color: oklch(61.3% 0.110 108.6);
Tailwind
colors: {
  custom: {
    50: '#afab6e',
    500: '#8a8931',
    950: '#000000',
  },
}
SCSS
$custom: #8a8931;
$custom-light: #afab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8931",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 49
  },
  "hsl": {
    "h": 59.326,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61335,
    "c": 0.10954,
    "h": 108.6
  },
  "luminance": 0.23516
}

Semantic roles & 50–950 ramp

primary
#8A8931
secondary
#6566B2
accent
#52D751
background
#FBFAF6
surface
#F6F4EC
border
#D0CEC7
text
#111007
muted
#807F7A

Preview Lab

Preview with #8A8931

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

Preview Lab → · Contrast checker → · Palette generator →

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