#8A5CDF#8A5CDF

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

Color values

HEX#8A5CDF
RGBrgb(138, 92, 223)
HSLhsl(261, 67%, 62%)
HSVhsv(261, 59%, 87%)
CMYKcmyk(38.1%, 58.7%, 0%, 12.5%)
CIE-LABlab(49.96, 46.89, -60.43)
CIE-LCHlch(49.96, 76.49, 307.81°)
OKLaboklab(58.85% 0.0845 -0.1718)
OKLCHoklch(58.85% 0.191 296.2)
XYZxyz(27.6242, 18.3848, 71.8909)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CDF #B1DF5C
analogous
#5C70DF #8A5CDF #CC5CDF
triadic
#8A5CDF #DF8A5C #5CDF8A
tetradic
#8A5CDF #DF5C70 #B1DF5C #5CDFCC
square
#8A5CDF #DF5C70 #B1DF5C #5CDFCC
split-complementary
#8A5CDF #DFCC5C #70DF5C
monochromatic
#4D20A1 #662AD4 #8A5CDF #AF8FE9 #D3C2F3

Accessibility & contrast

On white

4.49
#8A5CDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#8A5CDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CDF
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CDF#FFFFFF#000000##000000
##8A5CDF1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0178E3
Deuteranopia (green-blind)
#2475DC
Tritanopia (blue-blind)
#757895
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5cdf;
/* rgb */ color: rgb(138, 92, 223);
/* oklch */ color: oklch(58.9% 0.191 296.2);
Tailwind
colors: {
  custom: {
    50: '#b18cea',
    500: '#8a5cdf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cdf;
$custom-light: #b18cea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cdf",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 223
  },
  "hsl": {
    "h": 261.069,
    "s": 67.179,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5885,
    "c": 0.19148,
    "h": 296.2
  },
  "luminance": 0.18385
}

Semantic roles & 50–950 ramp

primary
#8A5CDF
secondary
#D3E4B3
accent
#CF168E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CDF

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

Preview Lab → · Contrast checker → · Palette generator →

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