#5D46BB#5D46BB

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

Color values

HEX#5D46BB
RGBrgb(93, 70, 187)
HSLhsl(252, 46%, 50%)
HSVhsv(252, 63%, 73%)
CMYKcmyk(50.3%, 62.6%, 0%, 26.7%)
CIE-LABlab(38.37, 39.84, -58.65)
CIE-LCHlch(38.37, 70.90, 304.18°)
OKLaboklab(48.55% 0.0512 -0.168)
OKLCHoklch(48.55% 0.176 287)
XYZxyz(15.6714, 10.2946, 48.1654)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46BB #A4BB46
analogous
#4669BB #5D46BB #9746BB
triadic
#5D46BB #BB5D46 #46BB5D
tetradic
#5D46BB #BB4669 #A4BB46 #46BB97
square
#5D46BB #BB4669 #A4BB46 #46BB97
split-complementary
#5D46BB #BB9746 #69BB46
monochromatic
#302462 #46358F #5D46BB #8473CB #ABA0DC

Accessibility & contrast

On white

6.86
#5D46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5D46BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D46BB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46BB#FFFFFF#000000##FFFFFF
##5D46BB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#3B627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d46bb;
/* rgb */ color: rgb(93, 70, 187);
/* oklch */ color: oklch(48.6% 0.176 287.0);
Tailwind
colors: {
  custom: {
    50: '#937bd0',
    500: '#5d46bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d46bb;
$custom-light: #937bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46bb",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 251.795,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48552,
    "c": 0.17567,
    "h": 287
  },
  "luminance": 0.10295
}

Semantic roles & 50–950 ramp

primary
#5D46BB
secondary
#BEC894
accent
#D652BC
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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