#8A5FFB#8A5FFB

#8A5FFB is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.3% C 0.221 H 291.1°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A5FFB
RGBrgb(138, 95, 251)
HSLhsl(257, 95%, 68%)
HSVhsv(257, 62%, 98%)
CMYKcmyk(45%, 62.2%, 0%, 1.6%)
CIE-LABlab(52.46, 52.70, -72.09)
CIE-LCHlch(52.46, 89.30, 306.17°)
OKLaboklab(61.27% 0.0797 -0.2061)
OKLCHoklch(61.27% 0.221 291.1)
XYZxyz(31.9812, 20.5516, 93.5299)
Luminance0.2055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FFB #D0FB5F
analogous
#5F82FB #8A5FFB #D85FFB
triadic
#8A5FFB #FB8A5F #5FFB8A
tetradic
#8A5FFB #FB5F82 #D0FB5F #5FFBD8
square
#8A5FFB #FB5F82 #D0FB5F #5FFBD8
split-complementary
#8A5FFB #FBD85F #82FB5F
monochromatic
#4005DA #5E23FA #8A5FFB #B69BFC #E1D6FE

Accessibility & contrast

On white

4.11
#8A5FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8A5FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FFB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FFB#FFFFFF#000000##000000
##8A5FFB1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007AF8
Tritanopia (blue-blind)
#6884A4
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a5ffb;
/* rgb */ color: rgb(138, 95, 251);
/* oklch */ color: oklch(61.3% 0.221 291.1);
Tailwind
colors: {
  custom: {
    50: '#b48efe',
    500: '#8a5ffb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ffb;
$custom-light: #b48efe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ffb",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 251
  },
  "hsl": {
    "h": 256.538,
    "s": 95.122,
    "l": 67.843
  },
  "oklch": {
    "l": 0.61267,
    "c": 0.22099,
    "h": 291.1
  },
  "luminance": 0.20553
}

Semantic roles & 50–950 ramp

primary
#8A5FFB
secondary
#E6F3C3
accent
#E600A6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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