#5A3CD7#5A3CD7

#5A3CD7 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.2% C 0.222 H 283.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5A3CD7
RGBrgb(90, 60, 215)
HSLhsl(252, 66%, 54%)
HSVhsv(252, 72%, 84%)
CMYKcmyk(58.1%, 72.1%, 0%, 15.7%)
CIE-LABlab(38.39, 53.18, -74.89)
CIE-LCHlch(38.39, 91.85, 305.38°)
OKLaboklab(49.22% 0.0518 -0.2157)
OKLCHoklch(49.22% 0.222 283.5)
XYZxyz(18.0943, 10.3105, 65.3135)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CD7 #B9D73C
analogous
#3C6CD7 #5A3CD7 #A83CD7
triadic
#5A3CD7 #D75A3C #3CD75A
tetradic
#5A3CD7 #D73C6C #B9D73C #3CD7A8
square
#5A3CD7 #D73C6C #B9D73C #3CD7A8
split-complementary
#5A3CD7 #D7A83C #6CD73C
monochromatic
#2D1A7F #4024B1 #5A3CD7 #856FE1 #B0A2EC

Accessibility & contrast

On white

6.86
#5A3CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A3CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3CD7
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CD7#FFFFFF#000000##FFFFFF
##5A3CD71.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0055D4
Tritanopia (blue-blind)
#0B6786
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3cd7;
/* rgb */ color: rgb(90, 60, 215);
/* oklch */ color: oklch(49.2% 0.222 283.5);
Tailwind
colors: {
  custom: {
    50: '#9675e5',
    500: '#5a3cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cd7;
$custom-light: #9675e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cd7",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 215
  },
  "hsl": {
    "h": 251.613,
    "s": 65.957,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49224,
    "c": 0.22188,
    "h": 283.5
  },
  "luminance": 0.10312
}

Semantic roles & 50–950 ramp

primary
#5A3CD7
secondary
#CCD896
accent
#E93FC8
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A3CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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