#8A57A2#8A57A2

#8A57A2 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 54.4% C 0.125 H 314.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8A57A2
RGBrgb(138, 87, 162)
HSLhsl(281, 30%, 49%)
HSVhsv(281, 46%, 64%)
CMYKcmyk(14.8%, 46.3%, 0%, 36.5%)
CIE-LABlab(45.40, 34.76, -32.39)
CIE-LCHlch(45.40, 47.51, 317.03°)
OKLaboklab(54.36% 0.0873 -0.0899)
OKLCHoklch(54.36% 0.125 314.2)
XYZxyz(20.4100, 14.8288, 35.9625)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57A2 #6FA257
analogous
#6557A2 #8A57A2 #A25795
triadic
#8A57A2 #A28A57 #57A28A
tetradic
#8A57A2 #A26557 #6FA257 #5795A2
square
#8A57A2 #A26557 #6FA257 #5795A2
split-complementary
#8A57A2 #95A257 #57A265
monochromatic
#462C52 #68427A #8A57A2 #A67DB9 #C1A5CF

Accessibility & contrast

On white

5.30
#8A57A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A57A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57A2
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57A2#FFFFFF#000000##FFFFFF
##8A57A21.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4869A5
Deuteranopia (green-blind)
#566DA0
Tritanopia (blue-blind)
#886275
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a57a2;
/* rgb */ color: rgb(138, 87, 162);
/* oklch */ color: oklch(54.4% 0.125 314.2);
Tailwind
colors: {
  custom: {
    50: '#ae88be',
    500: '#8a57a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a57a2;
$custom-light: #ae88be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57a2",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 280.8,
    "s": 30.12,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54356,
    "c": 0.12531,
    "h": 314.2
  },
  "luminance": 0.14828
}

Semantic roles & 50–950 ramp

primary
#8A57A2
secondary
#A4BC99
accent
#C66182
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8A57A2

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

Preview Lab → · Contrast checker → · Palette generator →

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