#8B8A2A#8B8A2A

#8B8A2A is a mid, moderate yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.116 H 108.8°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8B8A2A
RGBrgb(139, 138, 42)
HSLhsl(59, 54%, 35%)
HSVhsv(59, 70%, 55%)
CMYKcmyk(0%, 0.7%, 69.8%, 45.5%)
CIE-LABlab(55.92, -11.84, 49.06)
CIE-LCHlch(55.92, 50.47, 103.57°)
OKLaboklab(61.59% -0.0373 0.1097)
OKLCHoklch(61.59% 0.116 108.8)
XYZxyz(20.1546, 23.8337, 5.7287)
Luminance0.2383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A2A #2A2B8B
analogous
#8B592A #8B8A2A #5C8B2A
triadic
#8B8A2A #2A8B8A #8A2A8B
tetradic
#8B8A2A #2A8B59 #2A2B8B #8B2A5C
square
#8B8A2A #2A8B59 #2A2B8B #8B2A5C
split-complementary
#8B8A2A #2A5C8B #592A8B
monochromatic
#2D2D0E #5C5B1C #8B8A2A #BAB938 #CFCE60

Accessibility & contrast

On white

3.64
#8B8A2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8B8A2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A2A
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A2A#FFFFFF#000000##000000
##8B8A2A1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#978831
Tritanopia (blue-blind)
#958177
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a2a;
/* rgb */ color: rgb(139, 138, 42);
/* oklch */ color: oklch(61.6% 0.116 108.8);
Tailwind
colors: {
  custom: {
    50: '#b0ab6a',
    500: '#8b8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a2a;
$custom-light: #b0ab6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a2a",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 59.381,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.61593,
    "c": 0.11581,
    "h": 108.8
  },
  "luminance": 0.23833
}

Semantic roles & 50–950 ramp

primary
#8B8A2A
secondary
#5C5DB5
accent
#4CDD4B
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8B8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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