#8A5285#8A5285

#8A5285 is a mid, moderate purple. Relative luminance 0.131; OKLCH L 52.1% C 0.102 H 330.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A5285
RGBrgb(138, 82, 133)
HSLhsl(305, 25%, 43%)
HSVhsv(305, 41%, 54%)
CMYKcmyk(0%, 40.6%, 3.6%, 45.9%)
CIE-LABlab(42.96, 31.55, -18.80)
CIE-LCHlch(42.96, 36.73, 329.22°)
OKLaboklab(52.1% 0.0889 -0.051)
OKLCHoklch(52.1% 0.103 330.2)
XYZxyz(17.7319, 13.1322, 23.7865)
Luminance0.1313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5285 #528A57
analogous
#73528A #8A5285 #8A5269
triadic
#8A5285 #858A52 #52858A
tetradic
#8A5285 #8A7352 #528A57 #52698A
square
#8A5285 #8A7352 #528A57 #52698A
split-complementary
#8A5285 #698A52 #528A73
monochromatic
#3D243B #643B60 #8A5285 #AA6FA5 #C196BD

Accessibility & contrast

On white

5.79
#8A5285 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8A5285 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5285
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5285#FFFFFF#000000##FFFFFF
##8A52851.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506187
Deuteranopia (green-blind)
#5E6883
Tritanopia (blue-blind)
#8E5665
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a5285;
/* rgb */ color: rgb(138, 82, 133);
/* oklch */ color: oklch(52.1% 0.102 330.2);
Tailwind
colors: {
  custom: {
    50: '#ad84a8',
    500: '#8a5285',
    950: '#000000',
  },
}
SCSS
$custom: #8a5285;
$custom-light: #ad84a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5285",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 133
  },
  "hsl": {
    "h": 305.357,
    "s": 25.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52099,
    "c": 0.1025,
    "h": 330.2
  },
  "luminance": 0.13131
}

Semantic roles & 50–950 ramp

primary
#8A5285
secondary
#8AAE8D
accent
#C26E66
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100B0F
muted
#7F7C7F

Preview Lab

Preview with #8A5285

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

Preview Lab → · Contrast checker → · Palette generator →

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