#8A57E2#8A57E2

#8A57E2 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.3% C 0.202 H 296.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A57E2
RGBrgb(138, 87, 226)
HSLhsl(262, 71%, 61%)
HSVhsv(262, 62%, 89%)
CMYKcmyk(38.9%, 61.5%, 0%, 11.4%)
CIE-LABlab(49.14, 50.37, -63.45)
CIE-LCHlch(49.14, 81.01, 308.44°)
OKLaboklab(58.32% 0.0901 -0.1807)
OKLCHoklch(58.32% 0.202 296.5)
XYZxyz(27.6133, 17.7101, 73.9003)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A57E2 #AFE257
analogous
#576AE2 #8A57E2 #CF57E2
triadic
#8A57E2 #E28A57 #57E28A
tetradic
#8A57E2 #E2576A #AFE257 #57E2CF
square
#8A57E2 #E2576A #AFE257 #57E2CF
split-complementary
#8A57E2 #E2CF57 #6AE257
monochromatic
#4D1CA3 #6625D7 #8A57E2 #AE8BEB #D3BFF4

Accessibility & contrast

On white

4.62
#8A57E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#8A57E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #8A57E2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A57E2#FFFFFF#000000##FFFFFF
##8A57E21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E6
Deuteranopia (green-blind)
#0773DF
Tritanopia (blue-blind)
#747694
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8a57e2;
/* rgb */ color: rgb(138, 87, 226);
/* oklch */ color: oklch(58.3% 0.202 296.5);
Tailwind
colors: {
  custom: {
    50: '#b289ec',
    500: '#8a57e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a57e2;
$custom-light: #b289ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a57e2",
  "rgb": {
    "r": 138,
    "g": 87,
    "b": 226
  },
  "hsl": {
    "h": 262.014,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58318,
    "c": 0.2019,
    "h": 296.5
  },
  "luminance": 0.17711
}

Semantic roles & 50–950 ramp

primary
#8A57E2
secondary
#D1E4B0
accent
#D3138C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A57E2

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

Preview Lab → · Contrast checker → · Palette generator →

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