#8A5AE7#8A5AE7

#8A5AE7 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.1% C 0.204 H 295.1°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5AE7
RGBrgb(138, 90, 231)
HSLhsl(260, 75%, 63%)
HSVhsv(260, 61%, 91%)
CMYKcmyk(40.3%, 61%, 0%, 9.4%)
CIE-LABlab(50.08, 50.06, -64.76)
CIE-LCHlch(50.08, 81.85, 307.71°)
OKLaboklab(59.11% 0.0865 -0.1845)
OKLCHoklch(59.11% 0.204 295.1)
XYZxyz(28.5574, 18.4845, 77.6491)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AE7 #B7E75A
analogous
#5A70E7 #8A5AE7 #D15AE7
triadic
#8A5AE7 #E78A5A #5AE78A
tetradic
#8A5AE7 #E75A70 #B7E75A #5AE7D1
square
#8A5AE7 #E75A70 #B7E75A #5AE7D1
split-complementary
#8A5AE7 #E7D15A #70E75A
monochromatic
#4C19AD #6425DF #8A5AE7 #B08FEF #D6C5F7

Accessibility & contrast

On white

4.47
#8A5AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8A5AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AE7
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AE7#FFFFFF#000000##000000
##8A5AE71.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EB
Deuteranopia (green-blind)
#0075E4
Tritanopia (blue-blind)
#727A98
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ae7;
/* rgb */ color: rgb(138, 90, 231);
/* oklch */ color: oklch(59.1% 0.204 295.1);
Tailwind
colors: {
  custom: {
    50: '#b28bef',
    500: '#8a5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ae7;
$custom-light: #b28bef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ae7",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 260.426,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59105,
    "c": 0.20379,
    "h": 295.1
  },
  "luminance": 0.18485
}

Semantic roles & 50–950 ramp

primary
#8A5AE7
secondary
#D6E8B5
accent
#D70F93
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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