#8A5291#8A5291

#8A5291 is a mid, moderate purple. Relative luminance 0.135; OKLCH L 52.7% C 0.115 H 322.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A5291
RGBrgb(138, 82, 145)
HSLhsl(293, 28%, 45%)
HSVhsv(293, 43%, 57%)
CMYKcmyk(4.8%, 43.4%, 0%, 43.1%)
CIE-LABlab(43.48, 33.95, -25.24)
CIE-LCHlch(43.48, 42.30, 323.37°)
OKLaboklab(52.66% 0.0918 -0.0693)
OKLCHoklch(52.66% 0.115 322.9)
XYZxyz(18.6088, 13.4829, 28.4048)
Luminance0.1348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5291 #599152
analogous
#6B5291 #8A5291 #915279
triadic
#8A5291 #918A52 #52918A
tetradic
#8A5291 #916B52 #599152 #527991
square
#8A5291 #916B52 #599152 #527991
split-complementary
#8A5291 #799152 #52916B
monochromatic
#402643 #653C6A #8A5291 #A871AF #C098C5

Accessibility & contrast

On white

5.68
#8A5291 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8A5291 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5291
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5291#FFFFFF#000000##FFFFFF
##8A52911.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6393
Deuteranopia (green-blind)
#5A698F
Tritanopia (blue-blind)
#8C596B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a5291;
/* rgb */ color: rgb(138, 82, 145);
/* oklch */ color: oklch(52.7% 0.115 322.9);
Tailwind
colors: {
  custom: {
    50: '#ad84b1',
    500: '#8a5291',
    950: '#000000',
  },
}
SCSS
$custom: #8a5291;
$custom-light: #ad84b1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5291",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 293.333,
    "s": 27.753,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52661,
    "c": 0.11496,
    "h": 322.9
  },
  "luminance": 0.13482
}

Semantic roles & 50–950 ramp

primary
#8A5291
secondary
#91B28D
accent
#C4646E
background
#FAF8FA
surface
#F4EFF5
border
#CECACF
text
#100B10
muted
#7F7C7F

Preview Lab

Preview with #8A5291

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

Preview Lab → · Contrast checker → · Palette generator →

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