#8B8A31#8B8A31

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

Color values

HEX#8B8A31
RGBrgb(139, 138, 49)
HSLhsl(59, 48%, 37%)
HSVhsv(59, 65%, 55%)
CMYKcmyk(0%, 0.7%, 64.7%, 45.5%)
CIE-LABlab(55.98, -11.41, 46.14)
CIE-LCHlch(55.98, 47.53, 103.89°)
OKLaboklab(61.66% -0.0353 0.1047)
OKLCHoklch(61.66% 0.11 108.6)
XYZxyz(20.2910, 23.8883, 6.4472)
Luminance0.2389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A31 #31328B
analogous
#8B5D31 #8B8A31 #5F8B31
triadic
#8B8A31 #318B8A #8A318B
tetradic
#8B8A31 #318B5D #31328B #8B315F
square
#8B8A31 #318B5D #31328B #8B315F
split-complementary
#8B8A31 #315F8B #5D318B
monochromatic
#313011 #5E5D21 #8B8A31 #B8B741 #CBCA6B

Accessibility & contrast

On white

3.63
#8B8A31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#8B8A31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A31
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A31#FFFFFF#000000##000000
##8B8A311.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#958426
Deuteranopia (green-blind)
#968837
Tritanopia (blue-blind)
#958178
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a31;
/* rgb */ color: rgb(139, 138, 49);
/* oklch */ color: oklch(61.7% 0.110 108.6);
Tailwind
colors: {
  custom: {
    50: '#afab6e',
    500: '#8b8a31',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a31;
$custom-light: #afab6e;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a31",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 49
  },
  "hsl": {
    "h": 59.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61655,
    "c": 0.11046,
    "h": 108.6
  },
  "luminance": 0.23888
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B8A31

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

Preview Lab → · Contrast checker → · Palette generator →

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