#8B9822#8B9822

#8B9822 is a light, vivid yellow. Relative luminance 0.281; OKLCH L 64.8% C 0.136 H 115.9°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8B9822
RGBrgb(139, 152, 34)
HSLhsl(67, 63%, 36%)
HSVhsv(67, 78%, 60%)
CMYKcmyk(8.6%, 0%, 77.6%, 40.4%)
CIE-LABlab(59.94, -19.58, 55.85)
CIE-LCHlch(59.94, 59.19, 109.32°)
OKLaboklab(64.8% -0.0596 0.1225)
OKLCHoklch(64.8% 0.136 115.9)
XYZxyz(22.1650, 28.0613, 5.7618)
Luminance0.2806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B9822 #2F2298
analogous
#986A22 #8B9822 #509822
triadic
#8B9822 #228B98 #98228B
tetradic
#8B9822 #22986A #2F2298 #982250
square
#8B9822 #22986A #2F2298 #982250
split-complementary
#8B9822 #225098 #6A2298
monochromatic
#30340C #5D6617 #8B9822 #B9CA2D #CCDA5A

Accessibility & contrast

On white

3.18
#8B9822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#8B9822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B9822
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B9822#FFFFFF#000000##000000
##8B98221.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39002
Deuteranopia (green-blind)
#A2912D
Tritanopia (blue-blind)
#948F82
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #8b9822;
/* rgb */ color: rgb(139, 152, 34);
/* oklch */ color: oklch(64.8% 0.136 115.9);
Tailwind
colors: {
  custom: {
    50: '#b0b667',
    500: '#8b9822',
    950: '#000000',
  },
}
SCSS
$custom: #8b9822;
$custom-light: #b0b667;
$custom-dark: #000000;
JSON
{
  "hex": "#8b9822",
  "rgb": {
    "r": 139,
    "g": 152,
    "b": 34
  },
  "hsl": {
    "h": 66.61,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.64799,
    "c": 0.13627,
    "h": 115.9
  },
  "luminance": 0.28061
}

Semantic roles & 50–950 ramp

primary
#8B9822
secondary
#6357BE
accent
#41E654
background
#FBFBF6
surface
#F6F6EB
border
#D0D0C6
text
#111107
muted
#80807A

Preview Lab

Preview with #8B9822

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

Preview Lab → · Contrast checker → · Palette generator →

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