#8A5EE9#8A5EE9

#8A5EE9 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 59.8% C 0.201 H 294.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A5EE9
RGBrgb(138, 94, 233)
HSLhsl(259, 76%, 64%)
HSVhsv(259, 60%, 91%)
CMYKcmyk(40.8%, 59.7%, 0%, 8.6%)
CIE-LABlab(51.03, 48.43, -64.35)
CIE-LCHlch(51.03, 80.54, 306.96°)
OKLaboklab(59.84% 0.0819 -0.1833)
OKLCHoklch(59.84% 0.201 294.1)
XYZxyz(29.1880, 19.2912, 79.2607)
Luminance0.1929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE9 #BDE95E
analogous
#5E78E9 #8A5EE9 #D05EE9
triadic
#8A5EE9 #E98A5E #5EE98A
tetradic
#8A5EE9 #E95E78 #BDE95E #5EE9D0
square
#8A5EE9 #E95E78 #BDE95E #5EE9D0
split-complementary
#8A5EE9 #E9D05E #78E95E
monochromatic
#4A19B4 #6328E2 #8A5EE9 #B194F0 #D8CAF8

Accessibility & contrast

On white

4.32
#8A5EE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A5EE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EE9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EE9#FFFFFF#000000##000000
##8A5EE91.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BED
Deuteranopia (green-blind)
#0D77E6
Tritanopia (blue-blind)
#717D9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5ee9;
/* rgb */ color: rgb(138, 94, 233);
/* oklch */ color: oklch(59.8% 0.201 294.1);
Tailwind
colors: {
  custom: {
    50: '#b28df1',
    500: '#8a5ee9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee9;
$custom-light: #b28df1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee9",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 233
  },
  "hsl": {
    "h": 258.993,
    "s": 75.956,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59838,
    "c": 0.20081,
    "h": 294.1
  },
  "luminance": 0.19292
}

Semantic roles & 50–950 ramp

primary
#8A5EE9
secondary
#DAEAB9
accent
#D80D98
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5EE9

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

Preview Lab → · Contrast checker → · Palette generator →

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