#8C8B22#8C8B22

#8C8B22 is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.9% C 0.122 H 108.9°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8C8B22
RGBrgb(140, 139, 34)
HSLhsl(59, 61%, 34%)
HSVhsv(59, 76%, 55%)
CMYKcmyk(0%, 0.7%, 75.7%, 45.1%)
CIE-LABlab(56.24, -12.34, 52.44)
CIE-LCHlch(56.24, 53.88, 103.24°)
OKLaboklab(61.86% -0.0395 0.1153)
OKLCHoklch(61.86% 0.122 108.9)
XYZxyz(20.3373, 24.1568, 5.1045)
Luminance0.2416 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8B22 #22238C
analogous
#8C5622 #8C8B22 #588C22
triadic
#8C8B22 #228C8B #8B228C
tetradic
#8C8B22 #228C56 #22238C #8C2258
square
#8C8B22 #228C56 #22238C #8C2258
split-complementary
#8C8B22 #22588C #56228C
monochromatic
#2A290A #5B5A16 #8C8B22 #BDBC2E #D5D453

Accessibility & contrast

On white

3.60
#8C8B22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#8C8B22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8B22
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8B22#FFFFFF#000000##000000
##8C8B221.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c8b22;
/* rgb */ color: rgb(140, 139, 34);
/* oklch */ color: oklch(61.9% 0.122 108.9);
Tailwind
colors: {
  custom: {
    50: '#b1ac66',
    500: '#8c8b22',
    950: '#000000',
  },
}
SCSS
$custom: #8c8b22;
$custom-light: #b1ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8b22",
  "rgb": {
    "r": 140,
    "g": 139,
    "b": 34
  },
  "hsl": {
    "h": 59.434,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.61856,
    "c": 0.12187,
    "h": 108.9
  },
  "luminance": 0.24156
}

Semantic roles & 50–950 ramp

primary
#8C8B22
secondary
#5152B9
accent
#45E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8B22

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

Preview Lab → · Contrast checker → · Palette generator →

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