#5A3FC3#5A3FC3

#5A3FC3 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.9% C 0.195 H 285.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5A3FC3
RGBrgb(90, 63, 195)
HSLhsl(252, 52%, 51%)
HSVhsv(252, 68%, 76%)
CMYKcmyk(53.8%, 67.7%, 0%, 23.5%)
CIE-LABlab(37.24, 45.68, -65.19)
CIE-LCHlch(37.24, 79.60, 305.02°)
OKLaboklab(47.87% 0.0531 -0.1873)
OKLCHoklch(47.87% 0.195 285.8)
XYZxyz(15.8413, 9.6679, 52.6506)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FC3 #A8C33F
analogous
#3F66C3 #5A3FC3 #9C3FC3
triadic
#5A3FC3 #C35A3F #3FC35A
tetradic
#5A3FC3 #C33F66 #A8C33F #3FC39C
square
#5A3FC3 #C33F66 #A8C33F #3FC39C
split-complementary
#5A3FC3 #C39C3F #66C33F
monochromatic
#2F2067 #442F96 #5A3FC3 #826ED2 #AA9CE0

Accessibility & contrast

On white

7.16
#5A3FC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5A3FC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FC3
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FC3#FFFFFF#000000##FFFFFF
##5A3FC31.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC7
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#2E617C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3fc3;
/* rgb */ color: rgb(90, 63, 195);
/* oklch */ color: oklch(47.9% 0.195 285.8);
Tailwind
colors: {
  custom: {
    50: '#9376d6',
    500: '#5a3fc3',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fc3;
$custom-light: #9376d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fc3",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 195
  },
  "hsl": {
    "h": 252.273,
    "s": 52.381,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47868,
    "c": 0.19469,
    "h": 285.8
  },
  "luminance": 0.09669
}

Semantic roles & 50–950 ramp

primary
#5A3FC3
secondary
#C0CC92
accent
#DC4CBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A3FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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