#5A3DB2#5A3DB2

#5A3DB2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.1% C 0.176 H 289.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5A3DB2
RGBrgb(90, 61, 178)
HSLhsl(255, 49%, 47%)
HSVhsv(255, 66%, 70%)
CMYKcmyk(49.4%, 65.7%, 0%, 30.2%)
CIE-LABlab(35.45, 41.78, -58.10)
CIE-LCHlch(35.45, 71.56, 305.72°)
OKLaboklab(46.15% 0.0573 -0.1665)
OKLCHoklch(46.15% 0.176 289)
XYZxyz(13.9188, 8.7249, 43.0615)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DB2 #95B23D
analogous
#3D5BB2 #5A3DB2 #953DB2
triadic
#5A3DB2 #B25A3D #3DB25A
tetradic
#5A3DB2 #B23D5B #95B23D #3DB295
square
#5A3DB2 #B23D5B #95B23D #3DB295
split-complementary
#5A3DB2 #B2953D #5BB23D
monochromatic
#2C1E57 #432D84 #5A3DB2 #7C63C9 #A290D9

Accessibility & contrast

On white

7.65
#5A3DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A3DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DB2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DB2#FFFFFF#000000##FFFFFF
##5A3DB21.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#3C5A72
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a3db2;
/* rgb */ color: rgb(90, 61, 178);
/* oklch */ color: oklch(46.1% 0.176 289.0);
Tailwind
colors: {
  custom: {
    50: '#9074ca',
    500: '#5a3db2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3db2;
$custom-light: #9074ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3db2",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 254.872,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46149,
    "c": 0.17608,
    "h": 289
  },
  "luminance": 0.08725
}

Semantic roles & 50–950 ramp

primary
#5A3DB2
secondary
#B5C487
accent
#D94FB6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A3DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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