#8A8D17#8A8D17

#8A8D17 is a light, vivid yellow. Relative luminance 0.245; OKLCH L 62.1% C 0.130 H 111.2°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8A8D17
RGBrgb(138, 141, 23)
HSLhsl(62, 72%, 32%)
HSVhsv(62, 84%, 55%)
CMYKcmyk(2.1%, 0%, 83.7%, 44.7%)
CIE-LABlab(56.60, -14.74, 56.13)
CIE-LCHlch(56.60, 58.03, 104.71°)
OKLaboklab(62.08% -0.047 0.1212)
OKLCHoklch(62.08% 0.13 111.2)
XYZxyz(20.1615, 24.5154, 4.4804)
Luminance0.2452 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8D17 #1A178D
analogous
#8D5517 #8A8D17 #4F8D17
triadic
#8A8D17 #178A8D #8D178A
tetradic
#8A8D17 #178D55 #1A178D #8D174F
square
#8A8D17 #178D55 #1A178D #8D174F
split-complementary
#8A8D17 #174F8D #55178D
monochromatic
#232406 #57580E #8A8D17 #BDC220 #DCE03F

Accessibility & contrast

On white

3.56
#8A8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#8A8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8D17
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8D17#FFFFFF#000000##000000
##8A8D171.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#998923
Tritanopia (blue-blind)
#948478
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #8a8d17;
/* rgb */ color: rgb(138, 141, 23);
/* oklch */ color: oklch(62.1% 0.130 111.2);
Tailwind
colors: {
  custom: {
    50: '#b0ae61',
    500: '#8a8d17',
    950: '#000000',
  },
}
SCSS
$custom: #8a8d17;
$custom-light: #b0ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8d17",
  "rgb": {
    "r": 138,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 61.525,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.62082,
    "c": 0.12995,
    "h": 111.2
  },
  "luminance": 0.24515
}

Semantic roles & 50–950 ramp

primary
#8A8D17
secondary
#4340C0
accent
#39EF3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8A8D17

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

Preview Lab → · Contrast checker → · Palette generator →

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