#8A8A17#8A8A17

#8A8A17 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.4% C 0.127 H 109.6°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A8A17
RGBrgb(138, 138, 23)
HSLhsl(60, 71%, 32%)
HSVhsv(60, 83%, 54%)
CMYKcmyk(0%, 0%, 83.3%, 45.9%)
CIE-LABlab(55.73, -13.15, 55.38)
CIE-LCHlch(55.73, 56.92, 103.36°)
OKLaboklab(61.39% -0.0426 0.1195)
OKLCHoklch(61.39% 0.127 109.6)
XYZxyz(19.7251, 23.6427, 4.3349)
Luminance0.2364 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A17 #17178A
analogous
#8A5117 #8A8A17 #518A17
triadic
#8A8A17 #178A8A #8A178A
tetradic
#8A8A17 #178A51 #17178A #8A1751
square
#8A8A17 #178A51 #17178A #8A1751
split-complementary
#8A8A17 #17518A #51178A
monochromatic
#212106 #56560E #8A8A17 #BEBE20 #DFDF3D

Accessibility & contrast

On white

3.67
#8A8A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#8A8A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A17
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A17#FFFFFF#000000##000000
##8A8A171.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#978722
Tritanopia (blue-blind)
#948175
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8a8a17;
/* rgb */ color: rgb(138, 138, 23);
/* oklch */ color: oklch(61.4% 0.127 109.6);
Tailwind
colors: {
  custom: {
    50: '#b0ab61',
    500: '#8a8a17',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a17;
$custom-light: #b0ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a17",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 60,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61385,
    "c": 0.1269,
    "h": 109.6
  },
  "luminance": 0.23642
}

Semantic roles & 50–950 ramp

primary
#8A8A17
secondary
#3F3FBE
accent
#3AEE3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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