#8C8D2A#8C8D2A

#8C8D2A is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.4% C 0.119 H 110.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8C8D2A
RGBrgb(140, 141, 42)
HSLhsl(61, 54%, 36%)
HSVhsv(61, 70%, 55%)
CMYKcmyk(0.7%, 0%, 70.2%, 44.7%)
CIE-LABlab(56.87, -13.00, 50.04)
CIE-LCHlch(56.87, 51.70, 104.56°)
OKLaboklab(62.38% -0.0406 0.1117)
OKLCHoklch(62.38% 0.119 110)
XYZxyz(20.7587, 24.7929, 5.8821)
Luminance0.2479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8D2A #2B2A8D
analogous
#8D5C2A #8C8D2A #5A8D2A
triadic
#8C8D2A #2A8C8D #8D2A8C
tetradic
#8C8D2A #2A8D5C #2B2A8D #8D2A5A
square
#8C8D2A #2A8D5C #2B2A8D #8D2A5A
split-complementary
#8C8D2A #2A5A8D #5C2A8D
monochromatic
#2E2F0E #5D5E1C #8C8D2A #BBBC38 #CFD061

Accessibility & contrast

On white

3.52
#8C8D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#8C8D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8D2A
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8D2A#FFFFFF#000000##000000
##8C8D2A1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871A
Deuteranopia (green-blind)
#998A31
Tritanopia (blue-blind)
#968479
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8c8d2a;
/* rgb */ color: rgb(140, 141, 42);
/* oklch */ color: oklch(62.4% 0.119 110.0);
Tailwind
colors: {
  custom: {
    50: '#b1ae6a',
    500: '#8c8d2a',
    950: '#000000',
  },
}
SCSS
$custom: #8c8d2a;
$custom-light: #b1ae6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8d2a",
  "rgb": {
    "r": 140,
    "g": 141,
    "b": 42
  },
  "hsl": {
    "h": 60.606,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62375,
    "c": 0.11882,
    "h": 110
  },
  "luminance": 0.24792
}

Semantic roles & 50–950 ramp

primary
#8C8D2A
secondary
#5E5DB6
accent
#4ADD4C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8C8D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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