#8A5CD9#8A5CD9

#8A5CD9 is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.4% C 0.184 H 297.3°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD9
RGBrgb(138, 92, 217)
HSLhsl(262, 62%, 61%)
HSVhsv(262, 58%, 85%)
CMYKcmyk(36.4%, 57.6%, 0%, 14.9%)
CIE-LABlab(49.58, 45.33, -57.64)
CIE-LCHlch(49.58, 73.33, 308.18°)
OKLaboklab(58.45% 0.0846 -0.1636)
OKLCHoklch(58.45% 0.184 297.3)
XYZxyz(26.8296, 18.0669, 67.7059)
Luminance0.1807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD9 #ABD95C
analogous
#5C6CD9 #8A5CD9 #C85CD9
triadic
#8A5CD9 #D98A5C #5CD98A
tetradic
#8A5CD9 #D95C6C #ABD95C #5CD9C8
square
#8A5CD9 #D95C6C #ABD95C #5CD9C8
split-complementary
#8A5CD9 #D9C85C #6CD95C
monochromatic
#4E2397 #682FC9 #8A5CD9 #AE8EE5 #D1BFF0

Accessibility & contrast

On white

4.55
#8A5CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#8A5CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CD9
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD9#FFFFFF#000000##000000
##8A5CD91.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1876DD
Deuteranopia (green-blind)
#2E74D6
Tritanopia (blue-blind)
#787692
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5cd9;
/* rgb */ color: rgb(138, 92, 217);
/* oklch */ color: oklch(58.4% 0.184 297.3);
Tailwind
colors: {
  custom: {
    50: '#b18ce5',
    500: '#8a5cd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd9;
$custom-light: #b18ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd9",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 217
  },
  "hsl": {
    "h": 262.08,
    "s": 62.189,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58448,
    "c": 0.18421,
    "h": 297.3
  },
  "luminance": 0.18067
}

Semantic roles & 50–950 ramp

primary
#8A5CD9
secondary
#CFE0B1
accent
#CA1C8A
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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