#8A8C17#8A8C17

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

Color values

HEX#8A8C17
RGBrgb(138, 140, 23)
HSLhsl(61, 72%, 32%)
HSVhsv(61, 84%, 55%)
CMYKcmyk(1.4%, 0%, 83.6%, 45.1%)
CIE-LABlab(56.31, -14.21, 55.88)
CIE-LCHlch(56.31, 57.65, 104.27°)
OKLaboklab(61.85% -0.0455 0.1206)
OKLCHoklch(61.85% 0.129 110.7)
XYZxyz(20.0147, 24.2219, 4.4314)
Luminance0.2422 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C17 #19178C
analogous
#8C5417 #8A8C17 #4F8C17
triadic
#8A8C17 #178A8C #8C178A
tetradic
#8A8C17 #178C54 #19178C #8C174F
square
#8A8C17 #178C54 #19178C #8C174F
split-complementary
#8A8C17 #174F8C #54178C
monochromatic
#222306 #56570E #8A8C17 #BEC120 #DDDF3E

Accessibility & contrast

On white

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

On black

5.84
#8A8C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8C17
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8C17#FFFFFF#000000##000000
##8A8C171.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#998823
Tritanopia (blue-blind)
#948377
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c17;
/* rgb */ color: rgb(138, 140, 23);
/* oklch */ color: oklch(61.8% 0.129 110.7);
Tailwind
colors: {
  custom: {
    50: '#b0ad61',
    500: '#8a8c17',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c17;
$custom-light: #b0ad61;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c17",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 23
  },
  "hsl": {
    "h": 61.026,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.61849,
    "c": 0.12892,
    "h": 110.7
  },
  "luminance": 0.24221
}

Semantic roles & 50–950 ramp

primary
#8A8C17
secondary
#423FBF
accent
#39EF3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8C17

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

Preview Lab → · Contrast checker → · Palette generator →

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