#8B8922#8B8922

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

Color values

HEX#8B8922
RGBrgb(139, 137, 34)
HSLhsl(59, 61%, 34%)
HSVhsv(59, 76%, 55%)
CMYKcmyk(0%, 1.4%, 75.5%, 45.5%)
CIE-LABlab(55.58, -11.72, 51.79)
CIE-LCHlch(55.58, 53.10, 102.75°)
OKLaboklab(61.31% -0.0378 0.1139)
OKLCHoklch(61.31% 0.12 108.3)
XYZxyz(19.8826, 23.4964, 5.0010)
Luminance0.2350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8922 #22248B
analogous
#8B5522 #8B8922 #598B22
triadic
#8B8922 #228B89 #89228B
tetradic
#8B8922 #228B55 #22248B #8B2259
square
#8B8922 #228B55 #22248B #8B2259
split-complementary
#8B8922 #22598B #55228B
monochromatic
#29280A #5A5916 #8B8922 #BCB92E #D5D253

Accessibility & contrast

On white

3.68
#8B8922 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B8922#FFFFFF#000000##000000
##8B89221.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b8922;
/* rgb */ color: rgb(139, 137, 34);
/* oklch */ color: oklch(61.3% 0.120 108.3);
Tailwind
colors: {
  custom: {
    50: '#b0ab66',
    500: '#8b8922',
    950: '#000000',
  },
}
SCSS
$custom: #8b8922;
$custom-light: #b0ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8922",
  "rgb": {
    "r": 139,
    "g": 137,
    "b": 34
  },
  "hsl": {
    "h": 58.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61305,
    "c": 0.12002,
    "h": 108.3
  },
  "luminance": 0.23496
}

Semantic roles & 50–950 ramp

primary
#8B8922
secondary
#5052B8
accent
#47E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8922

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

Preview Lab → · Contrast checker → · Palette generator →

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