#8A5CE9#8A5CE9

#8A5CE9 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.5% C 0.203 H 294.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A5CE9
RGBrgb(138, 92, 233)
HSLhsl(260, 76%, 64%)
HSVhsv(260, 61%, 91%)
CMYKcmyk(40.8%, 60.5%, 0%, 8.6%)
CIE-LABlab(50.62, 49.51, -65.01)
CIE-LCHlch(50.62, 81.72, 307.29°)
OKLaboklab(59.54% 0.0841 -0.1853)
OKLCHoklch(59.54% 0.203 294.4)
XYZxyz(29.0124, 18.9401, 79.2022)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CE9 #BBE95C
analogous
#5C74E9 #8A5CE9 #D05CE9
triadic
#8A5CE9 #E98A5C #5CE98A
tetradic
#8A5CE9 #E95C74 #BBE95C #5CE9D0
square
#8A5CE9 #E95C74 #BBE95C #5CE9D0
split-complementary
#8A5CE9 #E9D05C #74E95C
monochromatic
#4A18B3 #6326E2 #8A5CE9 #B192F0 #D7C8F8

Accessibility & contrast

On white

4.39
#8A5CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#8A5CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CE9
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CE9#FFFFFF#000000##000000
##8A5CE91.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEE
Deuteranopia (green-blind)
#0076E6
Tritanopia (blue-blind)
#717C9A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5ce9;
/* rgb */ color: rgb(138, 92, 233);
/* oklch */ color: oklch(59.5% 0.203 294.4);
Tailwind
colors: {
  custom: {
    50: '#b28cf1',
    500: '#8a5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ce9;
$custom-light: #b28cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ce9",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 259.574,
    "s": 76.216,
    "l": 63.725
  },
  "oklch": {
    "l": 0.5954,
    "c": 0.20349,
    "h": 294.4
  },
  "luminance": 0.18941
}

Semantic roles & 50–950 ramp

primary
#8A5CE9
secondary
#D9E9B8
accent
#D80D96
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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