#5A3FCA#5A3FCA

#5A3FCA is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.5% C 0.203 H 284.8°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5A3FCA
RGBrgb(90, 63, 202)
HSLhsl(252, 57%, 52%)
HSVhsv(252, 69%, 79%)
CMYKcmyk(55.4%, 68.8%, 0%, 20.8%)
CIE-LABlab(37.83, 47.76, -68.30)
CIE-LCHlch(37.83, 83.34, 304.96°)
OKLaboklab(48.47% 0.0519 -0.1965)
OKLCHoklch(48.47% 0.203 284.8)
XYZxyz(16.6514, 9.9920, 56.9169)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FCA #AFCA3F
analogous
#3F69CA #5A3FCA #A03FCA
triadic
#5A3FCA #CA5A3F #3FCA5A
tetradic
#5A3FCA #CA3F69 #AFCA3F #3FCAA0
square
#5A3FCA #CA3F69 #AFCA3F #3FCAA0
split-complementary
#5A3FCA #CAA03F #69CA3F
monochromatic
#2F1F70 #432CA0 #5A3FCA #836FD7 #AC9FE4

Accessibility & contrast

On white

7.00
#5A3FCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5A3FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FCA
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FCA#FFFFFF#000000##FFFFFF
##5A3FCA1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0055C7
Tritanopia (blue-blind)
#266380
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a3fca;
/* rgb */ color: rgb(90, 63, 202);
/* oklch */ color: oklch(48.5% 0.203 284.8);
Tailwind
colors: {
  custom: {
    50: '#9476db',
    500: '#5a3fca',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fca;
$custom-light: #9476db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fca",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 202
  },
  "hsl": {
    "h": 251.655,
    "s": 56.735,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48471,
    "c": 0.20321,
    "h": 284.8
  },
  "luminance": 0.09993
}

Semantic roles & 50–950 ramp

primary
#5A3FCA
secondary
#C5D194
accent
#E048C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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