#8B8020#8B8020

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

Color values

HEX#8B8020
RGBrgb(139, 128, 32)
HSLhsl(54, 63%, 34%)
HSVhsv(54, 77%, 55%)
CMYKcmyk(0%, 7.9%, 77%, 45.5%)
CIE-LABlab(52.98, -6.91, 50.08)
CIE-LCHlch(52.98, 50.55, 97.86°)
OKLaboklab(59.23% -0.0245 0.1099)
OKLCHoklch(59.23% 0.113 102.5)
XYZxyz(18.6282, 21.0324, 4.4447)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8020 #202B8B
analogous
#8B4A20 #8B8020 #608B20
triadic
#8B8020 #208B80 #80208B
tetradic
#8B8020 #208B4A #202B8B #8B2060
square
#8B8020 #208B4A #202B8B #8B2060
split-complementary
#8B8020 #20608B #4A208B
monochromatic
#282409 #595215 #8B8020 #BDAE2B #D6C94F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8020#FFFFFF#000000##000000
##8B80201.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)
#8C7C0C
Deuteranopia (green-blind)
#908127
Tritanopia (blue-blind)
#96766E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8b8020;
/* rgb */ color: rgb(139, 128, 32);
/* oklch */ color: oklch(59.2% 0.113 102.5);
Tailwind
colors: {
  custom: {
    50: '#b0a463',
    500: '#8b8020',
    950: '#000000',
  },
}
SCSS
$custom: #8b8020;
$custom-light: #b0a463;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8020",
  "rgb": {
    "r": 139,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 53.832,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59234,
    "c": 0.11259,
    "h": 102.5
  },
  "luminance": 0.21032
}

Semantic roles & 50–950 ramp

primary
#8B8020
secondary
#4D58BA
accent
#53E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8020

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

Preview Lab → · Contrast checker → · Palette generator →

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