#8B8921#8B8921

#8B8921 is a mid, vivid yellow. Relative luminance 0.235; OKLCH L 61.3% C 0.121 H 108.4°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8B8921
RGBrgb(139, 137, 33)
HSLhsl(59, 62%, 34%)
HSVhsv(59, 76%, 55%)
CMYKcmyk(0%, 1.4%, 76.3%, 45.5%)
CIE-LABlab(55.57, -11.77, 52.14)
CIE-LCHlch(55.57, 53.45, 102.72°)
OKLaboklab(61.3% -0.038 0.1145)
OKLCHoklch(61.3% 0.121 108.4)
XYZxyz(19.8684, 23.4907, 4.9261)
Luminance0.2349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8921 #21238B
analogous
#8B5421 #8B8921 #588B21
triadic
#8B8921 #218B89 #89218B
tetradic
#8B8921 #218B54 #21238B #8B2158
square
#8B8921 #218B54 #21238B #8B2158
split-complementary
#8B8921 #21588B #54218B
monochromatic
#28280A #5A5815 #8B8921 #BCBA2D #D6D351

Accessibility & contrast

On white

3.69
#8B8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#8B8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8921
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8921#FFFFFF#000000##000000
##8B89211.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95830A
Deuteranopia (green-blind)
#968729
Tritanopia (blue-blind)
#958075
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8b8921;
/* rgb */ color: rgb(139, 137, 33);
/* oklch */ color: oklch(61.3% 0.121 108.4);
Tailwind
colors: {
  custom: {
    50: '#b0ab65',
    500: '#8b8921',
    950: '#000000',
  },
}
SCSS
$custom: #8b8921;
$custom-light: #b0ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8921",
  "rgb": {
    "r": 139,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 58.868,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61298,
    "c": 0.12062,
    "h": 108.4
  },
  "luminance": 0.2349
}

Semantic roles & 50–950 ramp

primary
#8B8921
secondary
#4F51B9
accent
#46E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8921

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

Preview Lab → · Contrast checker → · Palette generator →

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