#8A5EE5#8A5EE5

#8A5EE5 is a mid, vivid violet. Relative luminance 0.191; OKLCH L 59.6% C 0.196 H 294.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A5EE5
RGBrgb(138, 94, 229)
HSLhsl(260, 72%, 63%)
HSVhsv(260, 59%, 90%)
CMYKcmyk(39.7%, 59%, 0%, 10.2%)
CIE-LABlab(50.76, 47.37, -62.52)
CIE-LCHlch(50.76, 78.44, 307.15°)
OKLaboklab(59.56% 0.0821 -0.178)
OKLCHoklch(59.56% 0.196 294.8)
XYZxyz(28.6231, 19.0652, 76.2854)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE5 #B9E55E
analogous
#5E75E5 #8A5EE5 #CE5EE5
triadic
#8A5EE5 #E58A5E #5EE58A
tetradic
#8A5EE5 #E55E75 #B9E55E #5EE5CE
square
#8A5EE5 #E55E75 #B9E55E #5EE5CE
split-complementary
#8A5EE5 #E5CE5E #75E55E
monochromatic
#4B1CAD #6429DC #8A5EE5 #B093EE #D7C7F6

Accessibility & contrast

On white

4.36
#8A5EE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8A5EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EE5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EE5#FFFFFF#000000##000000
##8A5EE51.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE9
Deuteranopia (green-blind)
#1B77E2
Tritanopia (blue-blind)
#737C99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5ee5;
/* rgb */ color: rgb(138, 94, 229);
/* oklch */ color: oklch(59.6% 0.196 294.8);
Tailwind
colors: {
  custom: {
    50: '#b28dee',
    500: '#8a5ee5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee5;
$custom-light: #b28dee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee5",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 229
  },
  "hsl": {
    "h": 259.556,
    "s": 72.193,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59562,
    "c": 0.19598,
    "h": 294.8
  },
  "luminance": 0.19066
}

Semantic roles & 50–950 ramp

primary
#8A5EE5
secondary
#D8E7B7
accent
#D41195
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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