#5A3DBE#5A3DBE

#5A3DBE is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.1% C 0.191 H 286.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5A3DBE
RGBrgb(90, 61, 190)
HSLhsl(253, 51%, 49%)
HSVhsv(253, 68%, 75%)
CMYKcmyk(52.6%, 67.9%, 0%, 25.5%)
CIE-LABlab(36.42, 45.31, -63.60)
CIE-LCHlch(36.42, 78.09, 305.47°)
OKLaboklab(47.15% 0.0557 -0.1826)
OKLCHoklch(47.15% 0.191 286.9)
XYZxyz(15.1767, 9.2281, 49.6867)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DBE #A1BE3D
analogous
#3D61BE #5A3DBE #9A3DBE
triadic
#5A3DBE #BE5A3D #3DBE5A
tetradic
#5A3DBE #BE3D61 #A1BE3D #3DBE9A
square
#5A3DBE #BE3D61 #A1BE3D #3DBE9A
split-complementary
#5A3DBE #BE9A3D #61BE3D
monochromatic
#2E1F61 #442E90 #5A3DBE #8069CF #A798DE

Accessibility & contrast

On white

7.38
#5A3DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A3DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3DBE
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3DBE#FFFFFF#000000##FFFFFF
##5A3DBE1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#335E78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3dbe;
/* rgb */ color: rgb(90, 61, 190);
/* oklch */ color: oklch(47.1% 0.191 286.9);
Tailwind
colors: {
  custom: {
    50: '#9275d3',
    500: '#5a3dbe',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dbe;
$custom-light: #9275d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dbe",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 190
  },
  "hsl": {
    "h": 253.488,
    "s": 51.394,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4715,
    "c": 0.19094,
    "h": 286.9
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#5A3DBE
secondary
#BCC98D
accent
#DB4DBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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