#5D47CA#5D47CA

#5D47CA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.9% C 0.193 H 284.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5D47CA
RGBrgb(93, 71, 202)
HSLhsl(250, 55%, 54%)
HSVhsv(250, 65%, 79%)
CMYKcmyk(54%, 64.9%, 0%, 20.8%)
CIE-LABlab(39.74, 43.77, -65.16)
CIE-LCHlch(39.74, 78.50, 303.89°)
OKLaboklab(49.92% 0.0488 -0.1872)
OKLCHoklch(49.92% 0.193 284.6)
XYZxyz(17.4249, 11.0969, 57.0894)
Luminance0.1110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D47CA #B4CA47
analogous
#4772CA #5D47CA #9E47CA
triadic
#5D47CA #CA5D47 #47CA5D
tetradic
#5D47CA #CA4772 #B4CA47 #47CA9E
square
#5D47CA #CA4772 #B4CA47 #47CA9E
split-complementary
#5D47CA #CA9E47 #72CA47
monochromatic
#302275 #432FA4 #5D47CA #8777D8 #B1A6E5

Accessibility & contrast

On white

6.52
#5D47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5D47CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D47CA
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D47CA#FFFFFF#000000##FFFFFF
##5D47CA1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#2E6882
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d47ca;
/* rgb */ color: rgb(93, 71, 202);
/* oklch */ color: oklch(49.9% 0.193 284.6);
Tailwind
colors: {
  custom: {
    50: '#957cdb',
    500: '#5d47ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d47ca;
$custom-light: #957cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d47ca",
  "rgb": {
    "r": 93,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 250.076,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49916,
    "c": 0.19343,
    "h": 284.6
  },
  "luminance": 0.11098
}

Semantic roles & 50–950 ramp

primary
#5D47CA
secondary
#C9D29A
accent
#DF49C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D47CA

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

Preview Lab → · Contrast checker → · Palette generator →

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