#8B8A20#8B8A20

#8B8A20 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.5% C 0.122 H 109.0°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8B8A20
RGBrgb(139, 138, 32)
HSLhsl(59, 63%, 34%)
HSVhsv(59, 77%, 55%)
CMYKcmyk(0%, 0.7%, 77%, 45.5%)
CIE-LABlab(55.86, -12.35, 52.75)
CIE-LCHlch(55.86, 54.17, 103.18°)
OKLaboklab(61.52% -0.0397 0.1156)
OKLCHoklch(61.52% 0.122 109)
XYZxyz(19.9974, 23.7708, 4.9011)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A20 #20218B
analogous
#8B5420 #8B8A20 #568B20
triadic
#8B8A20 #208B8A #8A208B
tetradic
#8B8A20 #208B54 #20218B #8B2056
square
#8B8A20 #208B54 #20218B #8B2056
split-complementary
#8B8A20 #20568B #54208B
monochromatic
#282709 #595915 #8B8A20 #BDBB2B #D6D54F

Accessibility & contrast

On white

3.65
#8B8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#8B8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A20
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A20#FFFFFF#000000##000000
##8B8A201.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968406
Deuteranopia (green-blind)
#978729
Tritanopia (blue-blind)
#958176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a20;
/* rgb */ color: rgb(139, 138, 32);
/* oklch */ color: oklch(61.5% 0.122 109.0);
Tailwind
colors: {
  custom: {
    50: '#b0ab65',
    500: '#8b8a20',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a20;
$custom-light: #b0ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a20",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 59.439,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61523,
    "c": 0.1222,
    "h": 109
  },
  "luminance": 0.2377
}

Semantic roles & 50–950 ramp

primary
#8B8A20
secondary
#4D4EBA
accent
#44E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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