#5D48AE#5D48AE

#5D48AE is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.9% C 0.156 H 288.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5D48AE
RGBrgb(93, 72, 174)
HSLhsl(252, 41%, 48%)
HSVhsv(252, 59%, 68%)
CMYKcmyk(46.6%, 58.6%, 0%, 31.8%)
CIE-LABlab(37.87, 34.76, -51.78)
CIE-LCHlch(37.87, 62.37, 303.88°)
OKLaboklab(47.89% 0.0496 -0.1478)
OKLCHoklch(47.89% 0.156 288.6)
XYZxyz(14.4694, 10.0173, 41.2073)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D48AE #99AE48
analogous
#4866AE #5D48AE #9048AE
triadic
#5D48AE #AE5D48 #48AE5D
tetradic
#5D48AE #AE4866 #99AE48 #48AE90
square
#5D48AE #AE4866 #99AE48 #48AE90
split-complementary
#5D48AE #AE9048 #66AE48
monochromatic
#2F2457 #463683 #5D48AE #8170C4 #A79BD6

Accessibility & contrast

On white

6.99
#5D48AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5D48AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D48AE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D48AE#FFFFFF#000000##FFFFFF
##5D48AE1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#0057AC
Tritanopia (blue-blind)
#435F74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d48ae;
/* rgb */ color: rgb(93, 72, 174);
/* oklch */ color: oklch(47.9% 0.156 288.6);
Tailwind
colors: {
  custom: {
    50: '#917cc7',
    500: '#5d48ae',
    950: '#000000',
  },
}
SCSS
$custom: #5d48ae;
$custom-light: #917cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d48ae",
  "rgb": {
    "r": 93,
    "g": 72,
    "b": 174
  },
  "hsl": {
    "h": 252.353,
    "s": 41.463,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47893,
    "c": 0.15591,
    "h": 288.6
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#5D48AE
secondary
#B8C290
accent
#D157B8
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5D48AE

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

Preview Lab → · Contrast checker → · Palette generator →

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