#8C8A16#8C8A16

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

Color values

HEX#8C8A16
RGBrgb(140, 138, 22)
HSLhsl(59, 73%, 32%)
HSVhsv(59, 84%, 55%)
CMYKcmyk(0%, 1.4%, 84.3%, 45.1%)
CIE-LABlab(55.90, -12.27, 55.86)
CIE-LCHlch(55.90, 57.19, 102.38°)
OKLaboklab(61.56% -0.0403 0.1203)
OKLCHoklch(61.56% 0.127 108.5)
XYZxyz(20.0493, 23.8110, 4.2988)
Luminance0.2381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A16 #16188C
analogous
#8C4F16 #8C8A16 #538C16
triadic
#8C8A16 #168C8A #8A168C
tetradic
#8C8A16 #168C4F #16188C #8C1653
square
#8C8A16 #168C4F #16188C #8C1653
split-complementary
#8C8A16 #16538C #4F168C
monochromatic
#222205 #57560E #8C8A16 #C1BE1E #E0DE3C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A16#FFFFFF#000000##000000
##8C8A161.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)
#988821
Tritanopia (blue-blind)
#978075
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a16;
/* rgb */ color: rgb(140, 138, 22);
/* oklch */ color: oklch(61.6% 0.127 108.5);
Tailwind
colors: {
  custom: {
    50: '#b1ab61',
    500: '#8c8a16',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a16;
$custom-light: #b1ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a16",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 58.983,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.61561,
    "c": 0.12687,
    "h": 108.5
  },
  "luminance": 0.2381
}

Semantic roles & 50–950 ramp

primary
#8C8A16
secondary
#3E40C0
accent
#3BF038
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8C8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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