#8C8A1D#8C8A1D

#8C8A1D is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.124 H 108.4°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8C8A1D
RGBrgb(140, 138, 29)
HSLhsl(59, 66%, 33%)
HSVhsv(59, 79%, 55%)
CMYKcmyk(0%, 1.4%, 79.3%, 45.1%)
CIE-LABlab(55.93, -12.02, 53.84)
CIE-LCHlch(55.93, 55.16, 102.58°)
OKLaboklab(61.6% -0.0391 0.1173)
OKLCHoklch(61.6% 0.124 108.4)
XYZxyz(20.1263, 23.8418, 4.7039)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A1D #1D1F8C
analogous
#8C521D #8C8A1D #568C1D
triadic
#8C8A1D #1D8C8A #8A1D8C
tetradic
#8C8A1D #1D8C52 #1D1F8C #8C1D56
square
#8C8A1D #1D8C52 #1D1F8C #8C1D56
split-complementary
#8C8A1D #1D568C #521D8C
monochromatic
#272608 #595812 #8C8A1D #BFBC28 #D9D74A

Accessibility & contrast

On white

3.64
#8C8A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8C8A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A1D
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A1D#FFFFFF#000000##000000
##8C8A1D1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#988826
Tritanopia (blue-blind)
#978176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a1d;
/* rgb */ color: rgb(140, 138, 29);
/* oklch */ color: oklch(61.6% 0.124 108.4);
Tailwind
colors: {
  custom: {
    50: '#b1ab63',
    500: '#8c8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a1d;
$custom-light: #b1ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a1d",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 58.919,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61596,
    "c": 0.12363,
    "h": 108.4
  },
  "luminance": 0.23841
}

Semantic roles & 50–950 ramp

primary
#8C8A1D
secondary
#494BBC
accent
#42E93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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