#8C8A17#8C8A17

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

Color values

HEX#8C8A17
RGBrgb(140, 138, 23)
HSLhsl(59, 72%, 32%)
HSVhsv(59, 84%, 55%)
CMYKcmyk(0%, 1.4%, 83.6%, 45.1%)
CIE-LABlab(55.90, -12.23, 55.59)
CIE-LCHlch(55.90, 56.92, 102.41°)
OKLaboklab(61.57% -0.0402 0.1199)
OKLCHoklch(61.57% 0.126 108.5)
XYZxyz(20.0592, 23.8149, 4.3506)
Luminance0.2381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A17 #17198C
analogous
#8C4F17 #8C8A17 #548C17
triadic
#8C8A17 #178C8A #8A178C
tetradic
#8C8A17 #178C4F #17198C #8C1754
square
#8C8A17 #178C4F #17198C #8C1754
split-complementary
#8C8A17 #17548C #4F178C
monochromatic
#232206 #57560E #8C8A17 #C1BE20 #DFDD3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A17#FFFFFF#000000##000000
##8C8A171.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c8a17;
/* rgb */ color: rgb(140, 138, 23);
/* oklch */ color: oklch(61.6% 0.126 108.5);
Tailwind
colors: {
  custom: {
    50: '#b1ab61',
    500: '#8c8a17',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a17;
$custom-light: #b1ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a17",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 58.974,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61566,
    "c": 0.12645,
    "h": 108.5
  },
  "luminance": 0.23814
}

Semantic roles & 50–950 ramp

primary
#8C8A17
secondary
#3F42BF
accent
#3CEF39
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8C8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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