#5D47C5#5D47C5

#5D47C5 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.5% C 0.187 H 285.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5D47C5
RGBrgb(93, 71, 197)
HSLhsl(250, 52%, 53%)
HSVhsv(250, 64%, 77%)
CMYKcmyk(52.8%, 64%, 0%, 22.7%)
CIE-LABlab(39.35, 42.26, -62.90)
CIE-LCHlch(39.35, 75.78, 303.90°)
OKLaboklab(49.51% 0.0494 -0.1805)
OKLCHoklch(49.51% 0.187 285.3)
XYZxyz(16.8425, 10.8640, 54.0220)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D47C5 #AFC547
analogous
#4770C5 #5D47C5 #9C47C5
triadic
#5D47C5 #C55D47 #47C55D
tetradic
#5D47C5 #C54770 #AFC547 #47C59C
square
#5D47C5 #C54770 #AFC547 #47C59C
split-complementary
#5D47C5 #C59C47 #70C547
monochromatic
#30236F #44329D #5D47C5 #8676D4 #AFA4E2

Accessibility & contrast

On white

6.62
#5D47C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5D47C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D47C5
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D47C5#FFFFFF#000000##FFFFFF
##5D47C51.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#33667F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d47c5;
/* rgb */ color: rgb(93, 71, 197);
/* oklch */ color: oklch(49.5% 0.187 285.3);
Tailwind
colors: {
  custom: {
    50: '#947bd7',
    500: '#5d47c5',
    950: '#000000',
  },
}
SCSS
$custom: #5d47c5;
$custom-light: #947bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d47c5",
  "rgb": {
    "r": 93,
    "g": 71,
    "b": 197
  },
  "hsl": {
    "h": 250.476,
    "s": 52.066,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49508,
    "c": 0.18713,
    "h": 285.3
  },
  "luminance": 0.10865
}

Semantic roles & 50–950 ramp

primary
#5D47C5
secondary
#C6CF99
accent
#DC4CC3
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D47C5

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

Preview Lab → · Contrast checker → · Palette generator →

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