#8A57B2#8A57B2

#8A57B2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.2% C 0.144 H 308.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A57B2
RGBrgb(138, 87, 178)
HSLhsl(274, 37%, 52%)
HSVhsv(274, 51%, 70%)
CMYKcmyk(22.5%, 51.1%, 0%, 30.2%)
CIE-LABlab(46.22, 38.44, -40.51)
CIE-LCHlch(46.22, 55.84, 313.50°)
OKLaboklab(55.24% 0.0894 -0.1134)
OKLCHoklch(55.24% 0.144 308.3)
XYZxyz(21.9237, 15.4343, 43.9350)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57B2 #7FB257
analogous
#5D57B2 #8A57B2 #B257AD
triadic
#8A57B2 #B28A57 #57B28A
tetradic
#8A57B2 #B25D57 #7FB257 #57ADB2
square
#8A57B2 #B25D57 #7FB257 #57ADB2
split-complementary
#8A57B2 #ADB257 #57B25D
monochromatic
#4B2D62 #6A408C #8A57B2 #A781C5 #C4ABD8

Accessibility & contrast

On white

5.14
#8A57B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8A57B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57B2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57B2#FFFFFF#000000##FFFFFF
##8A57B21.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E6BB5
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#84677C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a57b2;
/* rgb */ color: rgb(138, 87, 178);
/* oklch */ color: oklch(55.2% 0.144 308.3);
Tailwind
colors: {
  custom: {
    50: '#ae88c9',
    500: '#8a57b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a57b2;
$custom-light: #ae88c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57b2",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 273.626,
    "s": 37.143,
    "l": 51.961
  },
  "oklch": {
    "l": 0.55238,
    "c": 0.14444,
    "h": 308.3
  },
  "luminance": 0.15434
}

Semantic roles & 50–950 ramp

primary
#8A57B2
secondary
#B0C69E
accent
#CD5B8D
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A57B2

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

Preview Lab → · Contrast checker → · Palette generator →

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