#8A8817#8A8817

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

Color values

HEX#8A8817
RGBrgb(138, 136, 23)
HSLhsl(59, 71%, 32%)
HSVhsv(59, 83%, 54%)
CMYKcmyk(0%, 1.4%, 83.3%, 45.9%)
CIE-LABlab(55.15, -12.08, 54.88)
CIE-LCHlch(55.15, 56.19, 102.41°)
OKLaboklab(60.92% -0.0396 0.1185)
OKLCHoklch(60.92% 0.125 108.5)
XYZxyz(19.4408, 23.0741, 4.2401)
Luminance0.2307 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8817 #17198A
analogous
#8A4F17 #8A8817 #538A17
triadic
#8A8817 #178A88 #88178A
tetradic
#8A8817 #178A4F #17198A #8A1753
square
#8A8817 #178A4F #17198A #8A1753
split-complementary
#8A8817 #17538A #4F178A
monochromatic
#212106 #56540E #8A8817 #BEBC20 #DFDC3D

Accessibility & contrast

On white

3.74
#8A8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#8A8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8817
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8817#FFFFFF#000000##000000
##8A88171.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#957F74
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8a8817;
/* rgb */ color: rgb(138, 136, 23);
/* oklch */ color: oklch(60.9% 0.125 108.5);
Tailwind
colors: {
  custom: {
    50: '#b0aa61',
    500: '#8a8817',
    950: '#000000',
  },
}
SCSS
$custom: #8a8817;
$custom-light: #b0aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8817",
  "rgb": {
    "r": 138,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 58.957,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60922,
    "c": 0.12491,
    "h": 108.5
  },
  "luminance": 0.23073
}

Semantic roles & 50–950 ramp

primary
#8A8817
secondary
#3F41BE
accent
#3DEE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8817

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

Preview Lab → · Contrast checker → · Palette generator →

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