#5A3BCB#5A3BCB

#5A3BCB is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.209 H 285.3°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5A3BCB
RGBrgb(90, 59, 203)
HSLhsl(253, 58%, 51%)
HSVhsv(253, 71%, 80%)
CMYKcmyk(55.7%, 70.9%, 0%, 20.4%)
CIE-LABlab(37.14, 50.20, -70.02)
CIE-LCHlch(37.14, 86.15, 305.64°)
OKLaboklab(48.01% 0.0551 -0.2015)
OKLCHoklch(48.01% 0.209 285.3)
XYZxyz(16.5566, 9.6124, 57.4713)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BCB #ACCB3B
analogous
#3B64CB #5A3BCB #A23BCB
triadic
#5A3BCB #CB5A3B #3BCB5A
tetradic
#5A3BCB #CB3B64 #ACCB3B #3BCBA2
square
#5A3BCB #CB3B64 #ACCB3B #3BCBA2
split-complementary
#5A3BCB #CBA23B #64CB3B
monochromatic
#2F1D6E #432A9F #5A3BCB #836BD8 #AB9CE5

Accessibility & contrast

On white

7.19
#5A3BCB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3BCB
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BCB#FFFFFF#000000##FFFFFF
##5A3BCB1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3bcb;
/* rgb */ color: rgb(90, 59, 203);
/* oklch */ color: oklch(48.0% 0.209 285.3);
Tailwind
colors: {
  custom: {
    50: '#9474dc',
    500: '#5a3bcb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bcb;
$custom-light: #9474dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bcb",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 203
  },
  "hsl": {
    "h": 252.917,
    "s": 58.065,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48005,
    "c": 0.20886,
    "h": 285.3
  },
  "luminance": 0.09613
}

Semantic roles & 50–950 ramp

primary
#5A3BCB
secondary
#C3D191
accent
#E147C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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