#8A5BDD#8A5BDD

#8A5BDD is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.6% C 0.190 H 296.8°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A5BDD
RGBrgb(138, 91, 221)
HSLhsl(262, 66%, 61%)
HSVhsv(262, 59%, 87%)
CMYKcmyk(37.6%, 58.8%, 0%, 13.3%)
CIE-LABlab(49.62, 46.92, -59.84)
CIE-LCHlch(49.62, 76.04, 308.10°)
OKLaboklab(58.56% 0.0858 -0.1701)
OKLCHoklch(58.56% 0.19 296.8)
XYZxyz(27.2701, 18.1054, 70.4505)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BDD #AEDD5B
analogous
#5B6DDD #8A5BDD #CB5BDD
triadic
#8A5BDD #DD8A5B #5BDD8A
tetradic
#8A5BDD #DD5B6D #AEDD5B #5BDDCB
square
#8A5BDD #DD5B6D #AEDD5B #5BDDCB
split-complementary
#8A5BDD #DDCB5B #6DDD5B
monochromatic
#4E219D #672BD0 #8A5BDD #AE8EE8 #D2C0F2

Accessibility & contrast

On white

4.54
#8A5BDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#8A5BDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BDD
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BDD#FFFFFF#000000##000000
##8A5BDD1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0277E1
Deuteranopia (green-blind)
#2574DA
Tritanopia (blue-blind)
#767793
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5bdd;
/* rgb */ color: rgb(138, 91, 221);
/* oklch */ color: oklch(58.6% 0.190 296.8);
Tailwind
colors: {
  custom: {
    50: '#b18be8',
    500: '#8a5bdd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bdd;
$custom-light: #b18be8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bdd",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 221
  },
  "hsl": {
    "h": 261.692,
    "s": 65.657,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58564,
    "c": 0.19046,
    "h": 296.8
  },
  "luminance": 0.18106
}

Semantic roles & 50–950 ramp

primary
#8A5BDD
secondary
#D1E2B1
accent
#CE188C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BDD

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

Preview Lab → · Contrast checker → · Palette generator →

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