#8A5BDE#8A5BDE

#8A5BDE is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.6% C 0.192 H 296.6°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#8A5BDE
RGBrgb(138, 91, 222)
HSLhsl(262, 66%, 61%)
HSVhsv(262, 59%, 87%)
CMYKcmyk(37.8%, 59%, 0%, 12.9%)
CIE-LABlab(49.69, 47.18, -60.30)
CIE-LCHlch(49.69, 76.56, 308.04°)
OKLaboklab(58.63% 0.0857 -0.1714)
OKLCHoklch(58.63% 0.192 296.6)
XYZxyz(27.4038, 18.1589, 71.1543)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BDE #AFDE5B
analogous
#5B6EDE #8A5BDE #CC5BDE
triadic
#8A5BDE #DE8A5B #5BDE8A
tetradic
#8A5BDE #DE5B6E #AFDE5B #5BDECC
square
#8A5BDE #DE5B6E #AFDE5B #5BDECC
split-complementary
#8A5BDE #DECC5B #6EDE5B
monochromatic
#4D209F #662AD2 #8A5BDE #AE8EE8 #D3C1F3

Accessibility & contrast

On white

4.53
#8A5BDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#8A5BDE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BDE
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BDE#FFFFFF#000000##000000
##8A5BDE1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E2
Deuteranopia (green-blind)
#2374DB
Tritanopia (blue-blind)
#767794
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5bde;
/* rgb */ color: rgb(138, 91, 222);
/* oklch */ color: oklch(58.6% 0.192 296.6);
Tailwind
colors: {
  custom: {
    50: '#b18be9',
    500: '#8a5bde',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bde;
$custom-light: #b18be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bde",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 222
  },
  "hsl": {
    "h": 261.527,
    "s": 66.497,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58631,
    "c": 0.19167,
    "h": 296.6
  },
  "luminance": 0.18159
}

Semantic roles & 50–950 ramp

primary
#8A5BDE
secondary
#D1E3B2
accent
#CE178D
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BDE

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

Preview Lab → · Contrast checker → · Palette generator →

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