#5D46BC#5D46BC

#5D46BC is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.6% C 0.177 H 286.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5D46BC
RGBrgb(93, 70, 188)
HSLhsl(252, 47%, 51%)
HSVhsv(252, 63%, 74%)
CMYKcmyk(50.5%, 62.8%, 0%, 26.3%)
CIE-LABlab(38.44, 40.14, -59.12)
CIE-LCHlch(38.44, 71.46, 304.17°)
OKLaboklab(48.63% 0.0512 -0.1694)
OKLCHoklch(48.63% 0.177 286.8)
XYZxyz(15.7788, 10.3376, 48.7311)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46BC #A5BC46
analogous
#466ABC #5D46BC #9846BC
triadic
#5D46BC #BC5D46 #46BC5D
tetradic
#5D46BC #BC466A #A5BC46 #46BC98
square
#5D46BC #BC466A #A5BC46 #46BC98
split-complementary
#5D46BC #BC9846 #6ABC46
monochromatic
#302464 #463490 #5D46BC #8473CC #ACA0DD

Accessibility & contrast

On white

6.85
#5D46BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5D46BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D46BC
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46BC#FFFFFF#000000##FFFFFF
##5D46BC1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#3A627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d46bc;
/* rgb */ color: rgb(93, 70, 188);
/* oklch */ color: oklch(48.6% 0.177 286.8);
Tailwind
colors: {
  custom: {
    50: '#937bd1',
    500: '#5d46bc',
    950: '#000000',
  },
}
SCSS
$custom: #5d46bc;
$custom-light: #937bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46bc",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 188
  },
  "hsl": {
    "h": 251.695,
    "s": 46.825,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48631,
    "c": 0.17695,
    "h": 286.8
  },
  "luminance": 0.10338
}

Semantic roles & 50–950 ramp

primary
#5D46BC
secondary
#BFC995
accent
#D651BD
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D46BC

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

Preview Lab → · Contrast checker → · Palette generator →

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