#8B8A21#8B8A21

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

Color values

HEX#8B8A21
RGBrgb(139, 138, 33)
HSLhsl(59, 62%, 34%)
HSVhsv(59, 76%, 55%)
CMYKcmyk(0%, 0.7%, 76.3%, 45.5%)
CIE-LABlab(55.86, -12.30, 52.41)
CIE-LCHlch(55.86, 53.83, 103.21°)
OKLaboklab(61.53% -0.0395 0.1151)
OKLCHoklch(61.53% 0.122 108.9)
XYZxyz(20.0112, 23.7764, 4.9737)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A21 #21228B
analogous
#8B5521 #8B8A21 #578B21
triadic
#8B8A21 #218B8A #8A218B
tetradic
#8B8A21 #218B55 #21228B #8B2157
square
#8B8A21 #218B55 #21228B #8B2157
split-complementary
#8B8A21 #21578B #55218B
monochromatic
#28280A #5A5915 #8B8A21 #BCBB2D #D6D451

Accessibility & contrast

On white

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

On black

5.76
#8B8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A21
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A21#FFFFFF#000000##000000
##8B8A211.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b8a21;
/* rgb */ color: rgb(139, 138, 33);
/* oklch */ color: oklch(61.5% 0.122 108.9);
Tailwind
colors: {
  custom: {
    50: '#b0ab65',
    500: '#8b8a21',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a21;
$custom-light: #b0ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a21",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 59.434,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61529,
    "c": 0.12164,
    "h": 108.9
  },
  "luminance": 0.23776
}

Semantic roles & 50–950 ramp

primary
#8B8A21
secondary
#4F50B9
accent
#45E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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