#8B8A22#8B8A22

#8B8A22 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.5% C 0.121 H 108.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8B8A22
RGBrgb(139, 138, 34)
HSLhsl(59, 61%, 34%)
HSVhsv(59, 76%, 55%)
CMYKcmyk(0%, 0.7%, 75.5%, 45.5%)
CIE-LABlab(55.87, -12.26, 52.06)
CIE-LCHlch(55.87, 53.48, 103.25°)
OKLaboklab(61.54% -0.0393 0.1145)
OKLCHoklch(61.54% 0.121 108.9)
XYZxyz(20.0254, 23.7820, 5.0486)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8A22 #22238B
analogous
#8B5622 #8B8A22 #588B22
triadic
#8B8A22 #228B8A #8A228B
tetradic
#8B8A22 #228B56 #22238B #8B2258
square
#8B8A22 #228B56 #22238B #8B2258
split-complementary
#8B8A22 #22588B #56228B
monochromatic
#29280A #5A5916 #8B8A22 #BCBB2E #D5D453

Accessibility & contrast

On white

3.65
#8B8A22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#8B8A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8A22
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8A22#FFFFFF#000000##000000
##8B8A221.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#96840C
Deuteranopia (green-blind)
#97872A
Tritanopia (blue-blind)
#958176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8b8a22;
/* rgb */ color: rgb(139, 138, 34);
/* oklch */ color: oklch(61.5% 0.121 108.9);
Tailwind
colors: {
  custom: {
    50: '#b0ab66',
    500: '#8b8a22',
    950: '#000000',
  },
}
SCSS
$custom: #8b8a22;
$custom-light: #b0ab66;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8a22",
  "rgb": {
    "r": 139,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 59.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61535,
    "c": 0.12105,
    "h": 108.9
  },
  "luminance": 0.23781
}

Semantic roles & 50–950 ramp

primary
#8B8A22
secondary
#5051B8
accent
#45E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8A22

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

Preview Lab → · Contrast checker → · Palette generator →

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