#8A5293#8A5293

#8A5293 is a mid, moderate purple. Relative luminance 0.135; OKLCH L 52.8% C 0.117 H 321.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5293
RGBrgb(138, 82, 147)
HSLhsl(292, 28%, 45%)
HSVhsv(292, 44%, 58%)
CMYKcmyk(6.1%, 44.2%, 0%, 42.4%)
CIE-LABlab(43.57, 34.36, -26.30)
CIE-LCHlch(43.57, 43.27, 322.57°)
OKLaboklab(52.76% 0.0922 -0.0723)
OKLCHoklch(52.76% 0.117 321.9)
XYZxyz(18.7644, 13.5452, 29.2242)
Luminance0.1354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5293 #5B9352
analogous
#695293 #8A5293 #93527C
triadic
#8A5293 #938A52 #52938A
tetradic
#8A5293 #936952 #5B9352 #527C93
square
#8A5293 #936952 #5B9352 #527C93
split-complementary
#8A5293 #7C9352 #529369
monochromatic
#402644 #653C6C #8A5293 #A872B0 #C099C6

Accessibility & contrast

On white

5.66
#8A5293 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A5293 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5293
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5293#FFFFFF#000000##FFFFFF
##8A52931.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6395
Deuteranopia (green-blind)
#596991
Tritanopia (blue-blind)
#8C5A6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a5293;
/* rgb */ color: rgb(138, 82, 147);
/* oklch */ color: oklch(52.8% 0.117 321.9);
Tailwind
colors: {
  custom: {
    50: '#ad84b3',
    500: '#8a5293',
    950: '#000000',
  },
}
SCSS
$custom: #8a5293;
$custom-light: #ad84b3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5293",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 147
  },
  "hsl": {
    "h": 291.692,
    "s": 28.384,
    "l": 44.902
  },
  "oklch": {
    "l": 0.52759,
    "c": 0.11714,
    "h": 321.9
  },
  "luminance": 0.13544
}

Semantic roles & 50–950 ramp

primary
#8A5293
secondary
#93B38E
accent
#C56371
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A5293

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

Preview Lab → · Contrast checker → · Palette generator →

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