#8A5CFD#8A5CFD

#8A5CFD is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.0% C 0.227 H 291.3°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8A5CFD
RGBrgb(138, 92, 253)
HSLhsl(257, 98%, 68%)
HSVhsv(257, 64%, 99%)
CMYKcmyk(45.5%, 63.6%, 0%, 0.8%)
CIE-LABlab(52.00, 54.83, -73.94)
CIE-LCHlch(52.00, 92.05, 306.56°)
OKLaboklab(60.99% 0.0826 -0.2115)
OKLCHoklch(60.99% 0.227 291.3)
XYZxyz(32.0330, 20.1483, 95.1107)
Luminance0.2015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CFD #CFFD5C
analogous
#5C7EFD #8A5CFD #DB5CFD
triadic
#8A5CFD #FD8A5C #5CFD8A
tetradic
#8A5CFD #FD5C7E #CFFD5C #5CFDDB
square
#8A5CFD #FD5C7E #CFFD5C #5CFDDB
split-complementary
#8A5CFD #FDDB5C #7EFD5C
monochromatic
#4103DC #5F20FC #8A5CFD #B598FE #E1D5FE

Accessibility & contrast

On white

4.18
#8A5CFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#8A5CFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CFD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CFD#FFFFFF#000000##000000
##8A5CFD1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0079FA
Tritanopia (blue-blind)
#6782A4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5cfd;
/* rgb */ color: rgb(138, 92, 253);
/* oklch */ color: oklch(61.0% 0.227 291.3);
Tailwind
colors: {
  custom: {
    50: '#b48dff',
    500: '#8a5cfd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cfd;
$custom-light: #b48dff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cfd",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 253
  },
  "hsl": {
    "h": 257.143,
    "s": 97.576,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60985,
    "c": 0.22707,
    "h": 291.3
  },
  "luminance": 0.20149
}

Semantic roles & 50–950 ramp

primary
#8A5CFD
secondary
#E5F3C1
accent
#E600A4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5CFD

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

Preview Lab → · Contrast checker → · Palette generator →

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