#8A5CFB#8A5CFB

#8A5CFB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.8% C 0.225 H 291.6°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A5CFB
RGBrgb(138, 92, 251)
HSLhsl(257, 95%, 67%)
HSVhsv(257, 63%, 98%)
CMYKcmyk(45%, 63.3%, 0%, 1.6%)
CIE-LABlab(51.86, 54.30, -73.06)
CIE-LCHlch(51.86, 91.02, 306.62°)
OKLaboklab(60.84% 0.0828 -0.2089)
OKLCHoklch(60.84% 0.225 291.6)
XYZxyz(31.7161, 20.0215, 93.4415)
Luminance0.2002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CFB #CDFB5C
analogous
#5C7EFB #8A5CFB #D95CFB
triadic
#8A5CFB #FB8A5C #5CFB8A
tetradic
#8A5CFB #FB5C7E #CDFB5C #5CFBD9
square
#8A5CFB #FB5C7E #CDFB5C #5CFBD9
split-complementary
#8A5CFB #FBD95C #7EFB5C
monochromatic
#4205D7 #5F20FA #8A5CFB #B598FC #E0D3FE

Accessibility & contrast

On white

4.20
#8A5CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8A5CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CFB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CFB#FFFFFF#000000##000000
##8A5CFB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0078F8
Tritanopia (blue-blind)
#6882A3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5cfb;
/* rgb */ color: rgb(138, 92, 251);
/* oklch */ color: oklch(60.8% 0.225 291.6);
Tailwind
colors: {
  custom: {
    50: '#b48cfe',
    500: '#8a5cfb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cfb;
$custom-light: #b48cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cfb",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 251
  },
  "hsl": {
    "h": 257.358,
    "s": 95.21,
    "l": 67.255
  },
  "oklch": {
    "l": 0.60836,
    "c": 0.22474,
    "h": 291.6
  },
  "luminance": 0.20023
}

Semantic roles & 50–950 ramp

primary
#8A5CFB
secondary
#E4F2C0
accent
#E600A3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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