#5A3CBE#5A3CBE

#5A3CBE is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.192 H 287.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5A3CBE
RGBrgb(90, 60, 190)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 68%, 75%)
CMYKcmyk(52.6%, 68.4%, 0%, 25.5%)
CIE-LABlab(36.22, 45.86, -63.93)
CIE-LCHlch(36.22, 78.68, 305.66°)
OKLaboklab(47.01% 0.0566 -0.1836)
OKLCHoklch(47.01% 0.192 287.1)
XYZxyz(15.1238, 9.1223, 49.6691)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CBE #A0BE3C
analogous
#3C5FBE #5A3CBE #9B3CBE
triadic
#5A3CBE #BE5A3C #3CBE5A
tetradic
#5A3CBE #BE3C5F #A0BE3C #3CBE9B
square
#5A3CBE #BE3C5F #A0BE3C #3CBE9B
split-complementary
#5A3CBE #BE9B3C #5FBE3C
monochromatic
#2E1F61 #442D8F #5A3CBE #8068CF #A796DE

Accessibility & contrast

On white

7.43
#5A3CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A3CBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CBE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CBE#FFFFFF#000000##FFFFFF
##5A3CBE1.007.432.827.43
#FFFFFF7.431.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C2
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#335D78
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3cbe;
/* rgb */ color: rgb(90, 60, 190);
/* oklch */ color: oklch(47.0% 0.192 287.1);
Tailwind
colors: {
  custom: {
    50: '#9274d3',
    500: '#5a3cbe',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cbe;
$custom-light: #9274d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cbe",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 190
  },
  "hsl": {
    "h": 253.846,
    "s": 52,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47006,
    "c": 0.19213,
    "h": 287.1
  },
  "luminance": 0.09123
}

Semantic roles & 50–950 ramp

primary
#5A3CBE
secondary
#BBCA8C
accent
#DB4CBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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