#5D46CE#5D46CE

#5D46CE is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.200 H 284.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5D46CE
RGBrgb(93, 70, 206)
HSLhsl(250, 58%, 54%)
HSVhsv(250, 66%, 81%)
CMYKcmyk(54.9%, 66%, 0%, 19.2%)
CIE-LABlab(39.85, 45.54, -67.30)
CIE-LCHlch(39.85, 81.26, 304.09°)
OKLaboklab(50.1% 0.0493 -0.1934)
OKLCHoklch(50.1% 0.2 284.3)
XYZxyz(17.8416, 11.1627, 59.5950)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46CE #B7CE46
analogous
#4673CE #5D46CE #A146CE
triadic
#5D46CE #CE5D46 #46CE5D
tetradic
#5D46CE #CE4673 #B7CE46 #46CEA1
square
#5D46CE #CE4673 #B7CE46 #46CEA1
split-complementary
#5D46CE #CEA146 #73CE46
monochromatic
#2F2079 #422DAA #5D46CE #8776DB #B2A7E8

Accessibility & contrast

On white

6.50
#5D46CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5D46CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D46CE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46CE#FFFFFF#000000##FFFFFF
##5D46CE1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#296884
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d46ce;
/* rgb */ color: rgb(93, 70, 206);
/* oklch */ color: oklch(50.1% 0.200 284.3);
Tailwind
colors: {
  custom: {
    50: '#957bde',
    500: '#5d46ce',
    950: '#000000',
  },
}
SCSS
$custom: #5d46ce;
$custom-light: #957bde;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46ce",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 206
  },
  "hsl": {
    "h": 250.147,
    "s": 58.12,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50095,
    "c": 0.19961,
    "h": 284.3
  },
  "luminance": 0.11164
}

Semantic roles & 50–950 ramp

primary
#5D46CE
secondary
#CBD59B
accent
#E146C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D46CE

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

Preview Lab → · Contrast checker → · Palette generator →

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