#8A8C1A#8A8C1A

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

Color values

HEX#8A8C1A
RGBrgb(138, 140, 26)
HSLhsl(61, 69%, 33%)
HSVhsv(61, 81%, 55%)
CMYKcmyk(1.4%, 0%, 81.4%, 45.1%)
CIE-LABlab(56.32, -14.11, 55.04)
CIE-LCHlch(56.32, 56.82, 104.38°)
OKLaboklab(61.86% -0.045 0.1194)
OKLCHoklch(61.86% 0.128 110.7)
XYZxyz(20.0465, 24.2346, 4.5988)
Luminance0.2423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C1A #1C1A8C
analogous
#8C551A #8A8C1A #518C1A
triadic
#8A8C1A #1A8A8C #8C1A8A
tetradic
#8A8C1A #1A8C55 #1C1A8C #8C1A51
square
#8A8C1A #1A8C55 #1C1A8C #8C1A51
split-complementary
#8A8C1A #1A518C #551A8C
monochromatic
#242507 #575810 #8A8C1A #BDC024 #DADC44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8C1A#FFFFFF#000000##000000
##8A8C1A1.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)
#988500
Deuteranopia (green-blind)
#998825
Tritanopia (blue-blind)
#948377
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c1a;
/* rgb */ color: rgb(138, 140, 26);
/* oklch */ color: oklch(61.9% 0.128 110.7);
Tailwind
colors: {
  custom: {
    50: '#b0ad62',
    500: '#8a8c1a',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c1a;
$custom-light: #b0ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c1a",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 26
  },
  "hsl": {
    "h": 61.053,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61863,
    "c": 0.12758,
    "h": 110.7
  },
  "luminance": 0.24234
}

Semantic roles & 50–950 ramp

primary
#8A8C1A
secondary
#4644BE
accent
#3CEC3F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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