#5A3FC2#5A3FC2

#5A3FC2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.8% C 0.193 H 286.0°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5A3FC2
RGBrgb(90, 63, 194)
HSLhsl(252, 52%, 50%)
HSVhsv(252, 68%, 76%)
CMYKcmyk(53.6%, 67.5%, 0%, 23.9%)
CIE-LABlab(37.16, 45.38, -64.74)
CIE-LCHlch(37.16, 79.06, 305.03°)
OKLaboklab(47.78% 0.0532 -0.186)
OKLCHoklch(47.78% 0.193 286)
XYZxyz(15.7286, 9.6229, 52.0571)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FC2 #A7C23F
analogous
#3F66C2 #5A3FC2 #9B3FC2
triadic
#5A3FC2 #C25A3F #3FC25A
tetradic
#5A3FC2 #C23F66 #A7C23F #3FC29B
square
#5A3FC2 #C23F66 #A7C23F #3FC29B
split-complementary
#5A3FC2 #C29B3F #66C23F
monochromatic
#2F2066 #442F95 #5A3FC2 #826DD1 #AA9CE0

Accessibility & contrast

On white

7.18
#5A3FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5A3FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3FC2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FC2#FFFFFF#000000##FFFFFF
##5A3FC21.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#2F607B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3fc2;
/* rgb */ color: rgb(90, 63, 194);
/* oklch */ color: oklch(47.8% 0.193 286.0);
Tailwind
colors: {
  custom: {
    50: '#9276d5',
    500: '#5a3fc2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fc2;
$custom-light: #9276d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fc2",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 194
  },
  "hsl": {
    "h": 252.366,
    "s": 51.779,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47782,
    "c": 0.19346,
    "h": 286
  },
  "luminance": 0.09624
}

Semantic roles & 50–950 ramp

primary
#5A3FC2
secondary
#C0CC91
accent
#DB4DBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A3FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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