#8A5DDE#8A5DDE

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

Color values

HEX#8A5DDE
RGBrgb(138, 93, 222)
HSLhsl(261, 66%, 62%)
HSVhsv(261, 58%, 87%)
CMYKcmyk(37.8%, 58.1%, 0%, 12.9%)
CIE-LABlab(50.10, 46.08, -59.63)
CIE-LCHlch(50.10, 75.36, 307.69°)
OKLaboklab(58.94% 0.0834 -0.1695)
OKLCHoklch(58.94% 0.189 296.2)
XYZxyz(27.5770, 18.5054, 71.2121)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DDE #B1DE5D
analogous
#5D71DE #8A5DDE #CB5DDE
triadic
#8A5DDE #DE8A5D #5DDE8A
tetradic
#8A5DDE #DE5D71 #B1DE5D #5DDECB
square
#8A5DDE #DE5D71 #B1DE5D #5DDECB
split-complementary
#8A5DDE #DECB5D #71DE5D
monochromatic
#4D21A0 #662BD3 #8A5DDE #AF90E8 #D3C3F3

Accessibility & contrast

On white

4.47
#8A5DDE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5DDE#FFFFFF#000000##000000
##8A5DDE1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0E78E2
Deuteranopia (green-blind)
#2875DB
Tritanopia (blue-blind)
#767995
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5dde;
/* rgb */ color: rgb(138, 93, 222);
/* oklch */ color: oklch(58.9% 0.189 296.2);
Tailwind
colors: {
  custom: {
    50: '#b18de9',
    500: '#8a5dde',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dde;
$custom-light: #b18de9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dde",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 222
  },
  "hsl": {
    "h": 260.93,
    "s": 66.154,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58935,
    "c": 0.18887,
    "h": 296.2
  },
  "luminance": 0.18506
}

Semantic roles & 50–950 ramp

primary
#8A5DDE
secondary
#D3E3B4
accent
#CE178E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DDE

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

Preview Lab → · Contrast checker → · Palette generator →

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