#8B8021#8B8021

#8B8021 is a mid, moderate yellow. Relative luminance 0.210; OKLCH L 59.2% C 0.112 H 102.5°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8B8021
RGBrgb(139, 128, 33)
HSLhsl(54, 62%, 34%)
HSVhsv(54, 76%, 55%)
CMYKcmyk(0%, 7.9%, 76.3%, 45.5%)
CIE-LABlab(52.99, -6.87, 49.71)
CIE-LCHlch(52.99, 50.19, 97.87°)
OKLaboklab(59.24% -0.0242 0.1093)
OKLCHoklch(59.24% 0.112 102.5)
XYZxyz(18.6420, 21.0379, 4.5173)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8021 #212C8B
analogous
#8B4B21 #8B8021 #618B21
triadic
#8B8021 #218B80 #80218B
tetradic
#8B8021 #218B4B #212C8B #8B2161
square
#8B8021 #218B4B #212C8B #8B2161
split-complementary
#8B8021 #21618B #4B218B
monochromatic
#28250A #5A5215 #8B8021 #BCAE2D #D6C851

Accessibility & contrast

On white

4.03
#8B8021 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#8B8021 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8021
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8021#FFFFFF#000000##000000
##8B80211.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0F
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#96776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8b8021;
/* rgb */ color: rgb(139, 128, 33);
/* oklch */ color: oklch(59.2% 0.112 102.5);
Tailwind
colors: {
  custom: {
    50: '#b0a464',
    500: '#8b8021',
    950: '#000000',
  },
}
SCSS
$custom: #8b8021;
$custom-light: #b0a464;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8021",
  "rgb": {
    "r": 139,
    "g": 128,
    "b": 33
  },
  "hsl": {
    "h": 53.774,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59241,
    "c": 0.11198,
    "h": 102.5
  },
  "luminance": 0.21037
}

Semantic roles & 50–950 ramp

primary
#8B8021
secondary
#4F5AB9
accent
#54E543
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8021

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

Preview Lab → · Contrast checker → · Palette generator →

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