#8A57F2#8A57F2

#8A57F2 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.5% C 0.221 H 293.7°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A57F2
RGBrgb(138, 87, 242)
HSLhsl(260, 86%, 65%)
HSVhsv(260, 64%, 95%)
CMYKcmyk(43%, 64%, 0%, 5.1%)
CIE-LABlab(50.25, 54.53, -70.65)
CIE-LCHlch(50.25, 89.25, 307.66°)
OKLaboklab(59.47% 0.0888 -0.2019)
OKLCHoklch(59.47% 0.221 293.7)
XYZxyz(29.9121, 18.6296, 86.0071)
Luminance0.1863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57F2 #BFF257
analogous
#5772F2 #8A57F2 #D857F2
triadic
#8A57F2 #F28A57 #57F28A
tetradic
#8A57F2 #F25772 #BFF257 #57F2D8
square
#8A57F2 #F25772 #BFF257 #57F2D8
split-complementary
#8A57F2 #F2D857 #72F257
monochromatic
#490FC0 #621EEE #8A57F2 #B290F6 #D9C9FB

Accessibility & contrast

On white

4.44
#8A57F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8A57F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A57F2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57F2#FFFFFF#000000##000000
##8A57F21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F7
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#6D7C9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a57f2;
/* rgb */ color: rgb(138, 87, 242);
/* oklch */ color: oklch(59.5% 0.221 293.7);
Tailwind
colors: {
  custom: {
    50: '#b389f7',
    500: '#8a57f2',
    950: '#000000',
  },
}
SCSS
$custom: #8a57f2;
$custom-light: #b389f7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57f2",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 259.742,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59471,
    "c": 0.22052,
    "h": 293.7
  },
  "luminance": 0.1863
}

Semantic roles & 50–950 ramp

primary
#8A57F2
secondary
#DCEDB8
accent
#E20399
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A57F2

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

Preview Lab → · Contrast checker → · Palette generator →

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