#8A5AFF#8A5AFF

#8A5AFF is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.232 H 291.3°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A5AFF
RGBrgb(138, 90, 255)
HSLhsl(257, 100%, 68%)
HSVhsv(257, 65%, 100%)
CMYKcmyk(45.9%, 64.7%, 0%, 0%)
CIE-LABlab(51.76, 56.41, -75.44)
CIE-LCHlch(51.76, 94.20, 306.79°)
OKLaboklab(60.86% 0.0843 -0.2159)
OKLCHoklch(60.86% 0.232 291.3)
XYZxyz(32.1823, 19.9345, 96.7404)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AFF #CFFF5A
analogous
#5A7CFF #8A5AFF #DD5AFF
triadic
#8A5AFF #FF8A5A #5AFF8A
tetradic
#8A5AFF #FF5A7C #CFFF5A #5AFFDD
square
#8A5AFF #FF5A7C #CFFF5A #5AFFDD
split-complementary
#8A5AFF #FFDD5A #7CFF5A
monochromatic
#4100DF #5F1DFF #8A5AFF #B597FF #E1D4FF

Accessibility & contrast

On white

4.21
#8A5AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A5AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AFF
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AFF#FFFFFF#000000##000000
##8A5AFF1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5aff;
/* rgb */ color: rgb(138, 90, 255);
/* oklch */ color: oklch(60.9% 0.232 291.3);
Tailwind
colors: {
  custom: {
    50: '#b48bff',
    500: '#8a5aff',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aff;
$custom-light: #b48bff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aff",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 255
  },
  "hsl": {
    "h": 257.455,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.60856,
    "c": 0.23182,
    "h": 291.3
  },
  "luminance": 0.19936
}

Semantic roles & 50–950 ramp

primary
#8A5AFF
secondary
#E5F4C1
accent
#E600A3
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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