#8B8A3A#8B8A3A

#8B8A3A is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.103 H 108.4°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8B8A3A
RGBrgb(139, 138, 58)
HSLhsl(59, 41%, 39%)
HSVhsv(59, 58%, 55%)
CMYKcmyk(0%, 0.7%, 58.3%, 45.5%)
CIE-LABlab(56.06, -10.75, 42.08)
CIE-LCHlch(56.06, 43.43, 104.33°)
OKLaboklab(61.75% -0.0324 0.0973)
OKLCHoklch(61.75% 0.103 108.4)
XYZxyz(20.5002, 23.9720, 7.5493)
Luminance0.2397 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A3A #3A3B8B
analogous
#8B613A #8B8A3A #638B3A
triadic
#8B8A3A #3A8B8A #8A3A8B
tetradic
#8B8A3A #3A8B61 #3A3B8B #8B3A63
square
#8B8A3A #3A8B61 #3A3B8B #8B3A63
split-complementary
#8B8A3A #3A638B #613A8B
monochromatic
#353416 #605F28 #8B8A3A #B5B44D #C7C679

Accessibility & contrast

On white

3.62
#8B8A3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#8B8A3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A3A
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A3A#FFFFFF#000000##000000
##8B8A3A1.003.625.795.79
#FFFFFF3.621.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948531
Deuteranopia (green-blind)
#96883E
Tritanopia (blue-blind)
#948279
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a3a;
/* rgb */ color: rgb(139, 138, 58);
/* oklch */ color: oklch(61.7% 0.103 108.4);
Tailwind
colors: {
  custom: {
    50: '#afac73',
    500: '#8b8a3a',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a3a;
$custom-light: #afac73;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a3a",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 58
  },
  "hsl": {
    "h": 59.259,
    "s": 41.117,
    "l": 38.627
  },
  "oklch": {
    "l": 0.61749,
    "c": 0.10257,
    "h": 108.4
  },
  "luminance": 0.23971
}

Semantic roles & 50–950 ramp

primary
#8B8A3A
secondary
#7171B0
accent
#58D157
background
#FBFAF7
surface
#F6F4ED
border
#D0CEC8
text
#111008
muted
#807F7B

Preview Lab

Preview with #8B8A3A

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

Preview Lab → · Contrast checker → · Palette generator →

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