#5D4BB2#5D4BB2

#5D4BB2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 48.7% C 0.157 H 287.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5D4BB2
RGBrgb(93, 75, 178)
HSLhsl(250, 41%, 50%)
HSVhsv(250, 58%, 70%)
CMYKcmyk(47.8%, 57.9%, 0%, 30.2%)
CIE-LABlab(38.85, 34.15, -52.57)
CIE-LCHlch(38.85, 62.69, 303.01°)
OKLaboklab(48.7% 0.0461 -0.1501)
OKLCHoklch(48.7% 0.157 287.1)
XYZxyz(15.0638, 10.5730, 43.3579)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D4BB2 #A0B24B
analogous
#4B6DB2 #5D4BB2 #904BB2
triadic
#5D4BB2 #B25D4B #4BB25D
tetradic
#5D4BB2 #B24B6D #A0B24B #4BB290
square
#5D4BB2 #B24B6D #A0B24B #4BB290
split-complementary
#5D4BB2 #B2904B #6DB24B
monochromatic
#30275C #473987 #5D4BB2 #8375C5 #AAA0D7

Accessibility & contrast

On white

6.74
#5D4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5D4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D4BB2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D4BB2#FFFFFF#000000##FFFFFF
##5D4BB21.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#416277
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d4bb2;
/* rgb */ color: rgb(93, 75, 178);
/* oklch */ color: oklch(48.7% 0.157 287.1);
Tailwind
colors: {
  custom: {
    50: '#917eca',
    500: '#5d4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5d4bb2;
$custom-light: #917eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d4bb2",
  "rgb": {
    "r": 93,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 250.485,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48702,
    "c": 0.15704,
    "h": 287.1
  },
  "luminance": 0.10574
}

Semantic roles & 50–950 ramp

primary
#5D4BB2
secondary
#BCC495
accent
#D157BB
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5D4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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