#5A3CCB#5A3CCB

#5A3CCB is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.1% C 0.208 H 285.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5A3CCB
RGBrgb(90, 60, 203)
HSLhsl(253, 58%, 52%)
HSVhsv(253, 70%, 80%)
CMYKcmyk(55.7%, 70.4%, 0%, 20.4%)
CIE-LABlab(37.33, 49.67, -69.70)
CIE-LCHlch(37.33, 85.59, 305.47°)
OKLaboklab(48.14% 0.0543 -0.2006)
OKLCHoklch(48.14% 0.208 285.1)
XYZxyz(16.6085, 9.7162, 57.4886)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CCB #ADCB3C
analogous
#3C66CB #5A3CCB #A13CCB
triadic
#5A3CCB #CB5A3C #3CCB5A
tetradic
#5A3CCB #CB3C66 #ADCB3C #3CCBA1
square
#5A3CCB #CB3C66 #ADCB3C #3CCBA1
split-complementary
#5A3CCB #CBA13C #66CB3C
monochromatic
#2F1E6F #432A9F #5A3CCB #836CD8 #AC9DE5

Accessibility & contrast

On white

7.13
#5A3CCB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5A3CCB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CCB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CCB#FFFFFF#000000##FFFFFF
##5A3CCB1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#25627F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3ccb;
/* rgb */ color: rgb(90, 60, 203);
/* oklch */ color: oklch(48.1% 0.208 285.1);
Tailwind
colors: {
  custom: {
    50: '#9474dc',
    500: '#5a3ccb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ccb;
$custom-light: #9474dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ccb",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 203
  },
  "hsl": {
    "h": 252.587,
    "s": 57.895,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48141,
    "c": 0.20777,
    "h": 285.1
  },
  "luminance": 0.09717
}

Semantic roles & 50–950 ramp

primary
#5A3CCB
secondary
#C4D192
accent
#E147C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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