#8A5EE7#8A5EE7

#8A5EE7 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.7% C 0.198 H 294.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#8A5EE7
RGBrgb(138, 94, 231)
HSLhsl(259, 74%, 64%)
HSVhsv(259, 59%, 91%)
CMYKcmyk(40.3%, 59.3%, 0%, 9.4%)
CIE-LABlab(50.89, 47.90, -63.44)
CIE-LCHlch(50.89, 79.49, 307.05°)
OKLaboklab(59.7% 0.082 -0.1807)
OKLCHoklch(59.7% 0.198 294.4)
XYZxyz(28.9039, 19.1775, 77.7646)
Luminance0.1918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE7 #BBE75E
analogous
#5E76E7 #8A5EE7 #CE5EE7
triadic
#8A5EE7 #E78A5E #5EE78A
tetradic
#8A5EE7 #E75E76 #BBE75E #5EE7CE
square
#8A5EE7 #E75E76 #BBE75E #5EE7CE
split-complementary
#8A5EE7 #E7CE5E #76E75E
monochromatic
#4A1AB0 #6329DF #8A5EE7 #B193EF #D7C9F7

Accessibility & contrast

On white

4.34
#8A5EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#8A5EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EE7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EE7#FFFFFF#000000##000000
##8A5EE71.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#1577E4
Tritanopia (blue-blind)
#727C9A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5ee7;
/* rgb */ color: rgb(138, 94, 231);
/* oklch */ color: oklch(59.7% 0.198 294.4);
Tailwind
colors: {
  custom: {
    50: '#b28def',
    500: '#8a5ee7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee7;
$custom-light: #b28def;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee7",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 231
  },
  "hsl": {
    "h": 259.27,
    "s": 74.054,
    "l": 63.725
  },
  "oklch": {
    "l": 0.597,
    "c": 0.19839,
    "h": 294.4
  },
  "luminance": 0.19178
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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