#5A3DC0#5A3DC0

#5A3DC0 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.3% C 0.193 H 286.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5A3DC0
RGBrgb(90, 61, 192)
HSLhsl(253, 52%, 50%)
HSVhsv(253, 68%, 75%)
CMYKcmyk(53.1%, 68.2%, 0%, 24.7%)
CIE-LABlab(36.59, 45.90, -64.50)
CIE-LCHlch(36.59, 79.16, 305.44°)
OKLaboklab(47.32% 0.0553 -0.1853)
OKLCHoklch(47.32% 0.193 286.6)
XYZxyz(15.3968, 9.3161, 50.8459)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DC0 #A3C03D
analogous
#3D62C0 #5A3DC0 #9B3DC0
triadic
#5A3DC0 #C05A3D #3DC05A
tetradic
#5A3DC0 #C03D62 #A3C03D #3DC09B
square
#5A3DC0 #C03D62 #A3C03D #3DC09B
split-complementary
#5A3DC0 #C09B3D #62C03D
monochromatic
#2E1F63 #442E92 #5A3DC0 #816AD0 #A899DF

Accessibility & contrast

On white

7.33
#5A3DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A3DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DC0
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DC0#FFFFFF#000000##FFFFFF
##5A3DC01.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#315F7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3dc0;
/* rgb */ color: rgb(90, 61, 192);
/* oklch */ color: oklch(47.3% 0.193 286.6);
Tailwind
colors: {
  custom: {
    50: '#9275d4',
    500: '#5a3dc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dc0;
$custom-light: #9275d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dc0",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 192
  },
  "hsl": {
    "h": 253.282,
    "s": 51.779,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47321,
    "c": 0.19339,
    "h": 286.6
  },
  "luminance": 0.09317
}

Semantic roles & 50–950 ramp

primary
#5A3DC0
secondary
#BDCA8E
accent
#DB4DBC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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