#8C8A1F#8C8A1F

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

Color values

HEX#8C8A1F
RGBrgb(140, 138, 31)
HSLhsl(59, 64%, 34%)
HSVhsv(59, 78%, 55%)
CMYKcmyk(0%, 1.4%, 77.9%, 45.1%)
CIE-LABlab(55.94, -11.94, 53.19)
CIE-LCHlch(55.94, 54.52, 102.65°)
OKLaboklab(61.61% -0.0387 0.1163)
OKLCHoklch(61.61% 0.123 108.4)
XYZxyz(20.1518, 23.8520, 4.8384)
Luminance0.2385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A1F #1F218C
analogous
#8C531F #8C8A1F #578C1F
triadic
#8C8A1F #1F8C8A #8A1F8C
tetradic
#8C8A1F #1F8C53 #1F218C #8C1F57
square
#8C8A1F #1F8C53 #1F218C #8C1F57
split-complementary
#8C8A1F #1F578C #531F8C
monochromatic
#282709 #5A5914 #8C8A1F #BEBB2A #D8D54E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C8A1F#FFFFFF#000000##000000
##8C8A1F1.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)
#968404
Deuteranopia (green-blind)
#988828
Tritanopia (blue-blind)
#978176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a1f;
/* rgb */ color: rgb(140, 138, 31);
/* oklch */ color: oklch(61.6% 0.123 108.4);
Tailwind
colors: {
  custom: {
    50: '#b1ab64',
    500: '#8c8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a1f;
$custom-light: #b1ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a1f",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 58.899,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61607,
    "c": 0.12256,
    "h": 108.4
  },
  "luminance": 0.23851
}

Semantic roles & 50–950 ramp

primary
#8C8A1F
secondary
#4C4EBB
accent
#44E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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