#8B8B22#8B8B22

#8B8B22 is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.8% C 0.122 H 109.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8B8B22
RGBrgb(139, 139, 34)
HSLhsl(60, 61%, 34%)
HSVhsv(60, 76%, 55%)
CMYKcmyk(0%, 0%, 75.5%, 45.5%)
CIE-LABlab(56.16, -12.79, 52.33)
CIE-LCHlch(56.16, 53.87, 103.74°)
OKLaboklab(61.77% -0.0407 0.1151)
OKLCHoklch(61.77% 0.122 109.5)
XYZxyz(20.1696, 24.0703, 5.0966)
Luminance0.2407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B8B22 #22228B
analogous
#8B5722 #8B8B22 #578B22
triadic
#8B8B22 #228B8B #8B228B
tetradic
#8B8B22 #228B57 #22228B #8B2257
square
#8B8B22 #228B57 #22228B #8B2257
split-complementary
#8B8B22 #22578B #57228B
monochromatic
#29290A #5A5A16 #8B8B22 #BCBC2E #D5D553

Accessibility & contrast

On white

3.61
#8B8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8B8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B8B22
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B8B22#FFFFFF#000000##000000
##8B8B221.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850B
Deuteranopia (green-blind)
#98882A
Tritanopia (blue-blind)
#958277
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8b8b22;
/* rgb */ color: rgb(139, 139, 34);
/* oklch */ color: oklch(61.8% 0.122 109.5);
Tailwind
colors: {
  custom: {
    50: '#b0ac66',
    500: '#8b8b22',
    950: '#000000',
  },
}
SCSS
$custom: #8b8b22;
$custom-light: #b0ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#8b8b22",
  "rgb": {
    "r": 139,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 60,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.61766,
    "c": 0.12208,
    "h": 109.5
  },
  "luminance": 0.2407
}

Semantic roles & 50–950 ramp

primary
#8B8B22
secondary
#5050B8
accent
#44E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8B8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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