#5A3CDF#5A3CDF

#5A3CDF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.0% C 0.231 H 282.5°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5A3CDF
RGBrgb(90, 60, 223)
HSLhsl(251, 72%, 55%)
HSVhsv(251, 73%, 87%)
CMYKcmyk(59.6%, 73.1%, 0%, 12.5%)
CIE-LABlab(39.13, 55.50, -78.28)
CIE-LCHlch(39.13, 95.95, 305.34°)
OKLaboklab(49.96% 0.0501 -0.2256)
OKLCHoklch(49.96% 0.231 282.5)
XYZxyz(19.1474, 10.7318, 70.8602)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CDF #C1DF3C
analogous
#3C6FDF #5A3CDF #AB3CDF
triadic
#5A3CDF #DF5A3C #3CDF5A
tetradic
#5A3CDF #DF3C6F #C1DF3C #3CDFAB
square
#5A3CDF #DF3C6F #C1DF3C #3CDFAB
split-complementary
#5A3CDF #DFAB3C #6FDF3C
monochromatic
#2C178A #3D1FBF #5A3CDF #8671E8 #B3A5F0

Accessibility & contrast

On white

6.67
#5A3CDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5A3CDF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3CDF
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CDF#FFFFFF#000000##FFFFFF
##5A3CDF1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E4
Deuteranopia (green-blind)
#0056DC
Tritanopia (blue-blind)
#006A8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a3cdf;
/* rgb */ color: rgb(90, 60, 223);
/* oklch */ color: oklch(50.0% 0.231 282.5);
Tailwind
colors: {
  custom: {
    50: '#9775ea',
    500: '#5a3cdf',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cdf;
$custom-light: #9775ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cdf",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 223
  },
  "hsl": {
    "h": 251.043,
    "s": 71.806,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49962,
    "c": 0.23114,
    "h": 282.5
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

primary
#5A3CDF
secondary
#D1DD99
accent
#EF39CD
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3CDF

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

Preview Lab → · Contrast checker → · Palette generator →

#5A3CDF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva