#8A5EE2#8A5EE2

#8A5EE2 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.4% C 0.192 H 295.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A5EE2
RGBrgb(138, 94, 226)
HSLhsl(260, 69%, 63%)
HSVhsv(260, 58%, 89%)
CMYKcmyk(38.9%, 58.4%, 0%, 11.4%)
CIE-LABlab(50.57, 46.58, -61.15)
CIE-LCHlch(50.57, 76.87, 307.30°)
OKLaboklab(59.36% 0.0821 -0.1739)
OKLCHoklch(59.36% 0.192 295.3)
XYZxyz(28.2078, 18.8991, 74.0985)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EE2 #B6E25E
analogous
#5E74E2 #8A5EE2 #CC5EE2
triadic
#8A5EE2 #E28A5E #5EE28A
tetradic
#8A5EE2 #E25E74 #B6E25E #5EE2CC
square
#8A5EE2 #E25E74 #B6E25E #5EE2CC
split-complementary
#8A5EE2 #E2CC5E #74E25E
monochromatic
#4C1EA7 #642AD9 #8A5EE2 #B092EB #D5C6F5

Accessibility & contrast

On white

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

On black

4.78
#8A5EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EE2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EE2#FFFFFF#000000##000000
##8A5EE21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0279E6
Deuteranopia (green-blind)
#2276DF
Tritanopia (blue-blind)
#747B97
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5ee2;
/* rgb */ color: rgb(138, 94, 226);
/* oklch */ color: oklch(59.4% 0.192 295.3);
Tailwind
colors: {
  custom: {
    50: '#b18dec',
    500: '#8a5ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ee2;
$custom-light: #b18dec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ee2",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 226
  },
  "hsl": {
    "h": 260,
    "s": 69.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59358,
    "c": 0.19233,
    "h": 295.3
  },
  "luminance": 0.189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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