#8A5BFF#8A5BFF

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

Color values

HEX#8A5BFF
RGBrgb(138, 91, 255)
HSLhsl(257, 100%, 68%)
HSVhsv(257, 64%, 100%)
CMYKcmyk(45.9%, 64.3%, 0%, 0%)
CIE-LABlab(51.95, 55.89, -75.13)
CIE-LCHlch(51.95, 93.64, 306.65°)
OKLaboklab(60.99% 0.0833 -0.215)
OKLCHoklch(60.99% 0.231 291.2)
XYZxyz(32.2673, 20.1043, 96.7687)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BFF #D0FF5B
analogous
#5B7EFF #8A5BFF #DC5BFF
triadic
#8A5BFF #FF8A5B #5BFF8A
tetradic
#8A5BFF #FF5B7E #D0FF5B #5BFFDC
square
#8A5BFF #FF5B7E #D0FF5B #5BFFDC
split-complementary
#8A5BFF #FFDC5B #7EFF5B
monochromatic
#4000E0 #5E1EFF #8A5BFF #B698FF #E1D5FF

Accessibility & contrast

On white

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

On black

5.02
#8A5BFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BFF
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BFF#FFFFFF#000000##000000
##8A5BFF1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#0078FC
Tritanopia (blue-blind)
#6682A5
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5bff;
/* rgb */ color: rgb(138, 91, 255);
/* oklch */ color: oklch(61.0% 0.231 291.2);
Tailwind
colors: {
  custom: {
    50: '#b48cff',
    500: '#8a5bff',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bff;
$custom-light: #b48cff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bff",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 255
  },
  "hsl": {
    "h": 257.195,
    "s": 100,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60994,
    "c": 0.23061,
    "h": 291.2
  },
  "luminance": 0.20105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5BFF

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

Preview Lab → · Contrast checker → · Palette generator →

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