#8A8C1D#8A8C1D

#8A8C1D is a mid, vivid yellow. Relative luminance 0.242; OKLCH L 61.9% C 0.126 H 110.7°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A8C1D
RGBrgb(138, 140, 29)
HSLhsl(61, 66%, 33%)
HSVhsv(61, 79%, 55%)
CMYKcmyk(1.4%, 0%, 79.3%, 45.1%)
CIE-LABlab(56.34, -13.99, 54.14)
CIE-LCHlch(56.34, 55.92, 104.49°)
OKLaboklab(61.88% -0.0445 0.118)
OKLCHoklch(61.88% 0.126 110.7)
XYZxyz(20.0818, 24.2487, 4.7848)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C1D #1F1D8C
analogous
#8C561D #8A8C1D #528C1D
triadic
#8A8C1D #1D8A8C #8C1D8A
tetradic
#8A8C1D #1D8C56 #1F1D8C #8C1D52
square
#8A8C1D #1D8C56 #1F1D8C #8C1D52
split-complementary
#8A8C1D #1D528C #561D8C
monochromatic
#262708 #585912 #8A8C1D #BCBF28 #D7D94A

Accessibility & contrast

On white

3.59
#8A8C1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#8A8C1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C1D
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C1D#FFFFFF#000000##000000
##8A8C1D1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#988827
Tritanopia (blue-blind)
#948378
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c1d;
/* rgb */ color: rgb(138, 140, 29);
/* oklch */ color: oklch(61.9% 0.126 110.7);
Tailwind
colors: {
  custom: {
    50: '#b0ad64',
    500: '#8a8c1d',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c1d;
$custom-light: #b0ad64;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c1d",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 29
  },
  "hsl": {
    "h": 61.081,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61879,
    "c": 0.12611,
    "h": 110.7
  },
  "luminance": 0.24248
}

Semantic roles & 50–950 ramp

primary
#8A8C1D
secondary
#4B49BC
accent
#3FE942
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8C1D

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

Preview Lab → · Contrast checker → · Palette generator →

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