#5D47C7#5D47C7

#5D47C7 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.7% C 0.190 H 285.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5D47C7
RGBrgb(93, 71, 199)
HSLhsl(250, 53%, 53%)
HSVhsv(250, 64%, 78%)
CMYKcmyk(53.3%, 64.3%, 0%, 22%)
CIE-LABlab(39.51, 42.86, -63.81)
CIE-LCHlch(39.51, 76.87, 303.89°)
OKLaboklab(49.67% 0.0492 -0.1832)
OKLCHoklch(49.67% 0.19 285)
XYZxyz(17.0731, 10.9562, 55.2369)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D47C7 #B1C747
analogous
#4771C7 #5D47C7 #9D47C7
triadic
#5D47C7 #C75D47 #47C75D
tetradic
#5D47C7 #C74771 #B1C747 #47C79D
square
#5D47C7 #C74771 #B1C747 #47C79D
split-complementary
#5D47C7 #C79D47 #71C747
monochromatic
#302271 #4431A0 #5D47C7 #8676D5 #B0A5E4

Accessibility & contrast

On white

6.58
#5D47C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5D47C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D47C7
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D47C7#FFFFFF#000000##FFFFFF
##5D47C71.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#0059C4
Tritanopia (blue-blind)
#316780
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d47c7;
/* rgb */ color: rgb(93, 71, 199);
/* oklch */ color: oklch(49.7% 0.190 285.0);
Tailwind
colors: {
  custom: {
    50: '#947bd9',
    500: '#5d47c7',
    950: '#000000',
  },
}
SCSS
$custom: #5d47c7;
$custom-light: #947bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d47c7",
  "rgb": {
    "r": 93,
    "g": 71,
    "b": 199
  },
  "hsl": {
    "h": 250.313,
    "s": 53.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4967,
    "c": 0.18965,
    "h": 285
  },
  "luminance": 0.10957
}

Semantic roles & 50–950 ramp

primary
#5D47C7
secondary
#C7D199
accent
#DD4BC4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D47C7

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

Preview Lab → · Contrast checker → · Palette generator →

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