#8B8022#8B8022

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

Color values

HEX#8B8022
RGBrgb(139, 128, 34)
HSLhsl(54, 61%, 34%)
HSVhsv(54, 76%, 55%)
CMYKcmyk(0%, 7.9%, 75.5%, 45.5%)
CIE-LABlab(53.00, -6.82, 49.34)
CIE-LCHlch(53.00, 49.81, 97.87°)
OKLaboklab(59.25% -0.024 0.1088)
OKLCHoklch(59.25% 0.111 102.4)
XYZxyz(18.6562, 21.0436, 4.5922)
Luminance0.2104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8022 #222D8B
analogous
#8B4C22 #8B8022 #628B22
triadic
#8B8022 #228B80 #80228B
tetradic
#8B8022 #228B4C #222D8B #8B2262
square
#8B8022 #228B4C #222D8B #8B2262
split-complementary
#8B8022 #22628B #4C228B
monochromatic
#29250A #5A5316 #8B8022 #BCAD2E #D5C753

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8022#FFFFFF#000000##000000
##8B80221.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)
#8C7C11
Deuteranopia (green-blind)
#908129
Tritanopia (blue-blind)
#96776E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8b8022;
/* rgb */ color: rgb(139, 128, 34);
/* oklch */ color: oklch(59.2% 0.111 102.4);
Tailwind
colors: {
  custom: {
    50: '#b0a464',
    500: '#8b8022',
    950: '#000000',
  },
}
SCSS
$custom: #8b8022;
$custom-light: #b0a464;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8022",
  "rgb": {
    "r": 139,
    "g": 128,
    "b": 34
  },
  "hsl": {
    "h": 53.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59248,
    "c": 0.11136,
    "h": 102.4
  },
  "luminance": 0.21043
}

Semantic roles & 50–950 ramp

primary
#8B8022
secondary
#505BB8
accent
#55E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8022

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

Preview Lab → · Contrast checker → · Palette generator →

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