#5A3BCC#5A3BCC

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

Color values

HEX#5A3BCC
RGBrgb(90, 59, 204)
HSLhsl(253, 59%, 52%)
HSVhsv(253, 71%, 80%)
CMYKcmyk(55.9%, 71.1%, 0%, 20%)
CIE-LABlab(37.23, 50.49, -70.45)
CIE-LCHlch(37.23, 86.68, 305.63°)
OKLaboklab(48.1% 0.0549 -0.2028)
OKLCHoklch(48.1% 0.21 285.1)
XYZxyz(16.6762, 9.6602, 58.1009)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BCC #ADCC3B
analogous
#3B65CC #5A3BCC #A33BCC
triadic
#5A3BCC #CC5A3B #3BCC5A
tetradic
#5A3BCC #CC3B65 #ADCC3B #3BCCA3
square
#5A3BCC #CC3B65 #ADCC3B #3BCCA3
split-complementary
#5A3BCC #CCA33B #65CC3B
monochromatic
#2F1D70 #432AA0 #5A3BCC #836CD9 #AC9CE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A3BCC#FFFFFF#000000##FFFFFF
##5A3BCC1.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)
#005CD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#236280
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3bcc;
/* rgb */ color: rgb(90, 59, 204);
/* oklch */ color: oklch(48.1% 0.210 285.1);
Tailwind
colors: {
  custom: {
    50: '#9474dd',
    500: '#5a3bcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bcc;
$custom-light: #9474dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bcc",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 204
  },
  "hsl": {
    "h": 252.828,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48095,
    "c": 0.21005,
    "h": 285.1
  },
  "luminance": 0.09661
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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