#8A8917#8A8917

#8A8917 is a mid, vivid yellow. Relative luminance 0.234; OKLCH L 61.2% C 0.126 H 109.1°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8A8917
RGBrgb(138, 137, 23)
HSLhsl(59, 71%, 32%)
HSVhsv(59, 83%, 54%)
CMYKcmyk(0%, 0.7%, 83.3%, 45.9%)
CIE-LABlab(55.44, -12.61, 55.13)
CIE-LCHlch(55.44, 56.55, 102.89°)
OKLaboklab(61.15% -0.0411 0.119)
OKLCHoklch(61.15% 0.126 109.1)
XYZxyz(19.5823, 23.3571, 4.2873)
Luminance0.2336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8917 #17188A
analogous
#8A5017 #8A8917 #528A17
triadic
#8A8917 #178A89 #89178A
tetradic
#8A8917 #178A50 #17188A #8A1752
square
#8A8917 #178A50 #17188A #8A1752
split-complementary
#8A8917 #17528A #50178A
monochromatic
#212106 #56550E #8A8917 #BEBD20 #DFDD3D

Accessibility & contrast

On white

3.70
#8A8917 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#8A8917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8917
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8917#FFFFFF#000000##000000
##8A89171.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#968622
Tritanopia (blue-blind)
#958075
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8917;
/* rgb */ color: rgb(138, 137, 23);
/* oklch */ color: oklch(61.2% 0.126 109.1);
Tailwind
colors: {
  custom: {
    50: '#b0ab61',
    500: '#8a8917',
    950: '#000000',
  },
}
SCSS
$custom: #8a8917;
$custom-light: #b0ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8917",
  "rgb": {
    "r": 138,
    "g": 137,
    "b": 23
  },
  "hsl": {
    "h": 59.478,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61153,
    "c": 0.1259,
    "h": 109.1
  },
  "luminance": 0.23356
}

Semantic roles & 50–950 ramp

primary
#8A8917
secondary
#3F40BE
accent
#3BEE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8917

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

Preview Lab → · Contrast checker → · Palette generator →

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