#5A3DBB#5A3DBB

#5A3DBB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.187 H 287.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5A3DBB
RGBrgb(90, 61, 187)
HSLhsl(254, 51%, 49%)
HSVhsv(254, 67%, 73%)
CMYKcmyk(51.9%, 67.4%, 0%, 26.7%)
CIE-LABlab(36.17, 44.43, -62.24)
CIE-LCHlch(36.17, 76.47, 305.52°)
OKLaboklab(46.9% 0.0561 -0.1787)
OKLCHoklch(46.9% 0.187 287.4)
XYZxyz(14.8522, 9.0983, 47.9776)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DBB #9EBB3D
analogous
#3D5FBB #5A3DBB #993DBB
triadic
#5A3DBB #BB5A3D #3DBB5A
tetradic
#5A3DBB #BB3D5F #9EBB3D #3DBB99
square
#5A3DBB #BB3D5F #9EBB3D #3DBB99
split-complementary
#5A3DBB #BB993D #5FBB3D
monochromatic
#2E1F5F #442E8D #5A3DBB #7F68CE #A696DD

Accessibility & contrast

On white

7.45
#5A3DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A3DBB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DBB#FFFFFF#000000##FFFFFF
##5A3DBB1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#355D77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a3dbb;
/* rgb */ color: rgb(90, 61, 187);
/* oklch */ color: oklch(46.9% 0.187 287.4);
Tailwind
colors: {
  custom: {
    50: '#9174d0',
    500: '#5a3dbb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dbb;
$custom-light: #9174d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dbb",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 187
  },
  "hsl": {
    "h": 253.81,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46896,
    "c": 0.18726,
    "h": 287.4
  },
  "luminance": 0.09099
}

Semantic roles & 50–950 ramp

primary
#5A3DBB
secondary
#BAC88C
accent
#DA4EBA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A3DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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