#8A5EDF#8A5EDF

#8A5EDF is a mid, vivid violet. Relative luminance 0.187; OKLCH L 59.2% C 0.189 H 295.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A5EDF
RGBrgb(138, 94, 223)
HSLhsl(260, 67%, 62%)
HSVhsv(260, 58%, 87%)
CMYKcmyk(38.1%, 57.8%, 0%, 12.5%)
CIE-LABlab(50.38, 45.79, -59.76)
CIE-LCHlch(50.38, 75.29, 307.46°)
OKLaboklab(59.16% 0.0822 -0.1698)
OKLCHoklch(59.16% 0.189 295.8)
XYZxyz(27.7998, 18.7359, 71.9494)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EDF #B3DF5E
analogous
#5E73DF #8A5EDF #CA5EDF
triadic
#8A5EDF #DF8A5E #5EDF8A
tetradic
#8A5EDF #DF5E73 #B3DF5E #5EDFCA
square
#8A5EDF #DF5E73 #B3DF5E #5EDFCA
split-complementary
#8A5EDF #DFCA5E #73DF5E
monochromatic
#4D20A2 #652BD5 #8A5EDF #AF91E9 #D4C4F3

Accessibility & contrast

On white

4.42
#8A5EDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#8A5EDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EDF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EDF#FFFFFF#000000##000000
##8A5EDF1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1079E3
Deuteranopia (green-blind)
#2876DC
Tritanopia (blue-blind)
#757A96
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5edf;
/* rgb */ color: rgb(138, 94, 223);
/* oklch */ color: oklch(59.2% 0.189 295.8);
Tailwind
colors: {
  custom: {
    50: '#b18dea',
    500: '#8a5edf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5edf;
$custom-light: #b18dea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5edf",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 223
  },
  "hsl": {
    "h": 260.465,
    "s": 66.839,
    "l": 62.157
  },
  "oklch": {
    "l": 0.59156,
    "c": 0.18868,
    "h": 295.8
  },
  "luminance": 0.18736
}

Semantic roles & 50–950 ramp

primary
#8A5EDF
secondary
#D4E4B5
accent
#CF1790
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EDF

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

Preview Lab → · Contrast checker → · Palette generator →

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