#8A5EE3#8A5EE3

#8A5EE3 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.4% C 0.194 H 295.1°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A5EE3
RGBrgb(138, 94, 227)
HSLhsl(260, 70%, 63%)
HSVhsv(260, 59%, 89%)
CMYKcmyk(39.2%, 58.6%, 0%, 11%)
CIE-LABlab(50.63, 46.84, -61.61)
CIE-LCHlch(50.63, 77.39, 307.25°)
OKLaboklab(59.43% 0.0821 -0.1753)
OKLCHoklch(59.43% 0.194 295.1)
XYZxyz(28.3454, 18.9541, 74.8232)
Luminance0.1895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE3 #B7E35E
analogous
#5E74E3 #8A5EE3 #CD5EE3
triadic
#8A5EE3 #E38A5E #5EE38A
tetradic
#8A5EE3 #E35E74 #B7E35E #5EE3CD
square
#8A5EE3 #E35E74 #B7E35E #5EE3CD
split-complementary
#8A5EE3 #E3CD5E #74E35E
monochromatic
#4C1DA9 #642ADA #8A5EE3 #B092EC #D6C6F5

Accessibility & contrast

On white

4.38
#8A5EE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5EE3#FFFFFF#000000##000000
##8A5EE31.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AE7
Deuteranopia (green-blind)
#2077E0
Tritanopia (blue-blind)
#747B98
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5ee3;
/* rgb */ color: rgb(138, 94, 227);
/* oklch */ color: oklch(59.4% 0.194 295.1);
Tailwind
colors: {
  custom: {
    50: '#b18ded',
    500: '#8a5ee3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee3;
$custom-light: #b18ded;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee3",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 227
  },
  "hsl": {
    "h": 259.85,
    "s": 70.37,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59426,
    "c": 0.19355,
    "h": 295.1
  },
  "luminance": 0.18955
}

Semantic roles & 50–950 ramp

primary
#8A5EE3
secondary
#D6E6B6
accent
#D21393
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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