#8C8A1A#8C8A1A

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

Color values

HEX#8C8A1A
RGBrgb(140, 138, 26)
HSLhsl(59, 69%, 33%)
HSVhsv(59, 81%, 55%)
CMYKcmyk(0%, 1.4%, 81.4%, 45.1%)
CIE-LABlab(55.91, -12.13, 54.75)
CIE-LCHlch(55.91, 56.08, 102.49°)
OKLaboklab(61.58% -0.0397 0.1187)
OKLCHoklch(61.58% 0.125 108.5)
XYZxyz(20.0910, 23.8277, 4.5180)
Luminance0.2383 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A1A #1A1C8C
analogous
#8C511A #8C8A1A #558C1A
triadic
#8C8A1A #1A8C8A #8A1A8C
tetradic
#8C8A1A #1A8C51 #1A1C8C #8C1A55
square
#8C8A1A #1A8C51 #1A1C8C #8C1A55
split-complementary
#8C8A1A #1A558C #511A8C
monochromatic
#252407 #585710 #8C8A1A #C0BD24 #DCDA44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A1A#FFFFFF#000000##000000
##8C8A1A1.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)
#988824
Tritanopia (blue-blind)
#978076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a1a;
/* rgb */ color: rgb(140, 138, 26);
/* oklch */ color: oklch(61.6% 0.125 108.5);
Tailwind
colors: {
  custom: {
    50: '#b1ab62',
    500: '#8c8a1a',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a1a;
$custom-light: #b1ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a1a",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 58.947,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.6158,
    "c": 0.12511,
    "h": 108.5
  },
  "luminance": 0.23827
}

Semantic roles & 50–950 ramp

primary
#8C8A1A
secondary
#4446BE
accent
#3FEC3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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