#5D46CD#5D46CD

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

Color values

HEX#5D46CD
RGBrgb(93, 70, 205)
HSLhsl(250, 57%, 54%)
HSVhsv(250, 66%, 80%)
CMYKcmyk(54.6%, 65.9%, 0%, 19.6%)
CIE-LABlab(39.77, 45.24, -66.85)
CIE-LCHlch(39.77, 80.72, 304.09°)
OKLaboklab(50.01% 0.0494 -0.1921)
OKLCHoklch(50.01% 0.198 284.4)
XYZxyz(17.7205, 11.1142, 58.9573)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46CD #B6CD46
analogous
#4673CD #5D46CD #A146CD
triadic
#5D46CD #CD5D46 #46CD5D
tetradic
#5D46CD #CD4673 #B6CD46 #46CDA1
square
#5D46CD #CD4673 #B6CD46 #46CDA1
split-complementary
#5D46CD #CDA146 #73CD46
monochromatic
#2F2078 #422DA8 #5D46CD #8776DA #B1A6E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D46CD#FFFFFF#000000##FFFFFF
##5D46CD1.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)
#0062D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#2A6883
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d46cd;
/* rgb */ color: rgb(93, 70, 205);
/* oklch */ color: oklch(50.0% 0.198 284.4);
Tailwind
colors: {
  custom: {
    50: '#957bdd',
    500: '#5d46cd',
    950: '#000000',
  },
}
SCSS
$custom: #5d46cd;
$custom-light: #957bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46cd",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 250.222,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50011,
    "c": 0.19837,
    "h": 284.4
  },
  "luminance": 0.11115
}

Semantic roles & 50–950 ramp

primary
#5D46CD
secondary
#CAD49B
accent
#E147C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D46CD

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

Preview Lab → · Contrast checker → · Palette generator →

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