#5D46CA#5D46CA

#5D46CA is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.8% C 0.195 H 284.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5D46CA
RGBrgb(93, 70, 202)
HSLhsl(250, 55%, 53%)
HSVhsv(250, 65%, 79%)
CMYKcmyk(54%, 65.3%, 0%, 20.8%)
CIE-LABlab(39.53, 44.34, -65.51)
CIE-LCHlch(39.53, 79.10, 304.09°)
OKLaboklab(49.76% 0.0498 -0.1882)
OKLCHoklch(49.76% 0.195 284.8)
XYZxyz(17.3618, 10.9708, 57.0684)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46CA #B3CA46
analogous
#4671CA #5D46CA #9F46CA
triadic
#5D46CA #CA5D46 #46CA5D
tetradic
#5D46CA #CA4671 #B3CA46 #46CA9F
square
#5D46CA #CA4671 #B3CA46 #46CA9F
split-complementary
#5D46CA #CA9F46 #71CA46
monochromatic
#302174 #432FA4 #5D46CA #8776D8 #B0A5E5

Accessibility & contrast

On white

6.57
#5D46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5D46CA
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46CA#FFFFFF#000000##FFFFFF
##5D46CA1.006.573.196.57
#FFFFFF6.571.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d46ca;
/* rgb */ color: rgb(93, 70, 202);
/* oklch */ color: oklch(49.8% 0.195 284.8);
Tailwind
colors: {
  custom: {
    50: '#957bdb',
    500: '#5d46ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d46ca;
$custom-light: #957bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46ca",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 250.455,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49762,
    "c": 0.19464,
    "h": 284.8
  },
  "luminance": 0.10972
}

Semantic roles & 50–950 ramp

primary
#5D46CA
secondary
#C8D29A
accent
#DF49C5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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