#5A3CB7#5A3CB7

#5A3CB7 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.184 H 288.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5A3CB7
RGBrgb(90, 60, 183)
HSLhsl(255, 51%, 48%)
HSVhsv(255, 67%, 72%)
CMYKcmyk(50.8%, 67.2%, 0%, 28.2%)
CIE-LABlab(35.64, 43.81, -60.74)
CIE-LCHlch(35.64, 74.90, 305.80°)
OKLaboklab(46.41% 0.0576 -0.1743)
OKLCHoklch(46.41% 0.184 288.3)
XYZxyz(14.3771, 8.8236, 45.7361)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CB7 #99B73C
analogous
#3C5CB7 #5A3CB7 #973CB7
triadic
#5A3CB7 #B75A3C #3CB75A
tetradic
#5A3CB7 #B73C5C #99B73C #3CB797
square
#5A3CB7 #B73C5C #99B73C #3CB797
split-complementary
#5A3CB7 #B7973C #5CB73C
monochromatic
#2D1E5B #432D89 #5A3CB7 #7D64CC #A492DB

Accessibility & contrast

On white

7.60
#5A3CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A3CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CB7
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CB7#FFFFFF#000000##FFFFFF
##5A3CB71.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#395B74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a3cb7;
/* rgb */ color: rgb(90, 60, 183);
/* oklch */ color: oklch(46.4% 0.184 288.3);
Tailwind
colors: {
  custom: {
    50: '#9174ce',
    500: '#5a3cb7',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cb7;
$custom-light: #9174ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cb7",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 254.634,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46413,
    "c": 0.18355,
    "h": 288.3
  },
  "luminance": 0.08824
}

Semantic roles & 50–950 ramp

primary
#5A3CB7
secondary
#B7C688
accent
#DA4EB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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