#8A5DDD#8A5DDD

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

Color values

HEX#8A5DDD
RGBrgb(138, 93, 221)
HSLhsl(261, 65%, 62%)
HSVhsv(261, 58%, 87%)
CMYKcmyk(37.6%, 57.9%, 0%, 13.3%)
CIE-LABlab(50.04, 45.82, -59.17)
CIE-LCHlch(50.04, 74.84, 307.75°)
OKLaboklab(58.87% 0.0834 -0.1681)
OKLCHoklch(58.87% 0.188 296.4)
XYZxyz(27.4434, 18.4520, 70.5083)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DDD #B0DD5D
analogous
#5D70DD #8A5DDD #CA5DDD
triadic
#8A5DDD #DD8A5D #5DDD8A
tetradic
#8A5DDD #DD5D70 #B0DD5D #5DDDCA
square
#8A5DDD #DD5D70 #B0DD5D #5DDDCA
split-complementary
#8A5DDD #DDCA5D #70DD5D
monochromatic
#4D219E #662CD1 #8A5DDD #AF90E8 #D3C2F2

Accessibility & contrast

On white

4.48
#8A5DDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#8A5DDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DDD
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DDD#FFFFFF#000000##000000
##8A5DDD1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1178E1
Deuteranopia (green-blind)
#2A75DA
Tritanopia (blue-blind)
#767894
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ddd;
/* rgb */ color: rgb(138, 93, 221);
/* oklch */ color: oklch(58.9% 0.188 296.4);
Tailwind
colors: {
  custom: {
    50: '#b18de8',
    500: '#8a5ddd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ddd;
$custom-light: #b18de8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ddd",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 221
  },
  "hsl": {
    "h": 261.094,
    "s": 65.306,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58868,
    "c": 0.18765,
    "h": 296.4
  },
  "luminance": 0.18452
}

Semantic roles & 50–950 ramp

primary
#8A5DDD
secondary
#D2E3B3
accent
#CD188E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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