#8B8222#8B8222

#8B8222 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.7% C 0.113 H 103.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8B8222
RGBrgb(139, 130, 34)
HSLhsl(55, 61%, 34%)
HSVhsv(55, 76%, 55%)
CMYKcmyk(0%, 6.5%, 75.5%, 45.5%)
CIE-LABlab(53.57, -7.92, 49.89)
CIE-LCHlch(53.57, 50.51, 99.02°)
OKLaboklab(59.7% -0.0271 0.1099)
OKLCHoklch(59.7% 0.113 103.8)
XYZxyz(18.9196, 21.5705, 4.6800)
Luminance0.2157 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8222 #222B8B
analogous
#8B4E22 #8B8222 #608B22
triadic
#8B8222 #228B82 #82228B
tetradic
#8B8222 #228B4E #222B8B #8B2260
square
#8B8222 #228B4E #222B8B #8B2260
split-complementary
#8B8222 #22608B #4E228B
monochromatic
#29260A #5A5416 #8B8222 #BCB02E #D5CA53

Accessibility & contrast

On white

3.95
#8B8222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#8B8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8222
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8222#FFFFFF#000000##000000
##8B82221.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D10
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#96796F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8b8222;
/* rgb */ color: rgb(139, 130, 34);
/* oklch */ color: oklch(59.7% 0.113 103.8);
Tailwind
colors: {
  custom: {
    50: '#b0a665',
    500: '#8b8222',
    950: '#000000',
  },
}
SCSS
$custom: #8b8222;
$custom-light: #b0a665;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8222",
  "rgb": {
    "r": 139,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 54.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.59702,
    "c": 0.11319,
    "h": 103.8
  },
  "luminance": 0.2157
}

Semantic roles & 50–950 ramp

primary
#8B8222
secondary
#5059B8
accent
#52E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8B8222

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

Preview Lab → · Contrast checker → · Palette generator →

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