#8A8C15#8A8C15

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

Color values

HEX#8A8C15
RGBrgb(138, 140, 21)
HSLhsl(61, 74%, 32%)
HSVhsv(61, 85%, 55%)
CMYKcmyk(1.4%, 0%, 85%, 45.1%)
CIE-LABlab(56.30, -14.27, 56.39)
CIE-LCHlch(56.30, 58.17, 104.20°)
OKLaboklab(61.84% -0.0459 0.1214)
OKLCHoklch(61.84% 0.13 110.7)
XYZxyz(19.9954, 24.2142, 4.3298)
Luminance0.2421 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8C15 #17158C
analogous
#8C5315 #8A8C15 #4F8C15
triadic
#8A8C15 #158A8C #8C158A
tetradic
#8A8C15 #158C53 #17158C #8C154F
square
#8A8C15 #158C53 #17158C #8C154F
split-complementary
#8A8C15 #154F8C #53158C
monochromatic
#212205 #56570D #8A8C15 #BEC11D #DFE13A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A8C15#FFFFFF#000000##000000
##8A8C151.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)
#998821
Tritanopia (blue-blind)
#948377
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8c15;
/* rgb */ color: rgb(138, 140, 21);
/* oklch */ color: oklch(61.8% 0.130 110.7);
Tailwind
colors: {
  custom: {
    50: '#b0ad60',
    500: '#8a8c15',
    950: '#000000',
  },
}
SCSS
$custom: #8a8c15;
$custom-light: #b0ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8c15",
  "rgb": {
    "r": 138,
    "g": 140,
    "b": 21
  },
  "hsl": {
    "h": 61.008,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.61841,
    "c": 0.12974,
    "h": 110.7
  },
  "luminance": 0.24214
}

Semantic roles & 50–950 ramp

primary
#8A8C15
secondary
#3F3DC0
accent
#37F13A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8A8C15

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

Preview Lab → · Contrast checker → · Palette generator →

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