#8A5EDB#8A5EDB

#8A5EDB is a mid, vivid violet. Relative luminance 0.185; OKLCH L 58.9% C 0.184 H 296.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5EDB
RGBrgb(138, 94, 219)
HSLhsl(261, 63%, 61%)
HSVhsv(261, 57%, 86%)
CMYKcmyk(37%, 57.1%, 0%, 14.1%)
CIE-LABlab(50.12, 44.75, -57.90)
CIE-LCHlch(50.12, 73.17, 307.70°)
OKLaboklab(58.89% 0.0822 -0.1644)
OKLCHoklch(58.89% 0.184 296.6)
XYZxyz(27.2669, 18.5227, 69.1428)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EDB #AFDB5E
analogous
#5E71DB #8A5EDB #C95EDB
triadic
#8A5EDB #DB8A5E #5EDB8A
tetradic
#8A5EDB #DB5E71 #AFDB5E #5EDBC9
square
#8A5EDB #DB5E71 #AFDB5E #5EDBC9
split-complementary
#8A5EDB #DBC95E #71DB5E
monochromatic
#4D239C #662ECE #8A5EDB #AE90E6 #D3C2F1

Accessibility & contrast

On white

4.46
#8A5EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8A5EDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EDB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EDB#FFFFFF#000000##000000
##8A5EDB1.004.464.704.70
#FFFFFF4.461.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C78DF
Deuteranopia (green-blind)
#2F76D8
Tritanopia (blue-blind)
#777893
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5edb;
/* rgb */ color: rgb(138, 94, 219);
/* oklch */ color: oklch(58.9% 0.184 296.6);
Tailwind
colors: {
  custom: {
    50: '#b18de7',
    500: '#8a5edb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5edb;
$custom-light: #b18de7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5edb",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 219
  },
  "hsl": {
    "h": 261.12,
    "s": 63.452,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5889,
    "c": 0.18379,
    "h": 296.6
  },
  "luminance": 0.18523
}

Semantic roles & 50–950 ramp

primary
#8A5EDB
secondary
#D1E2B3
accent
#CB1A8D
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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