#5D46C8#5D46C8

#5D46C8 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.6% C 0.192 H 285.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5D46C8
RGBrgb(93, 70, 200)
HSLhsl(251, 54%, 53%)
HSVhsv(251, 65%, 78%)
CMYKcmyk(53.5%, 65%, 0%, 21.6%)
CIE-LABlab(39.37, 43.74, -64.61)
CIE-LCHlch(39.37, 78.02, 304.10°)
OKLaboklab(49.6% 0.05 -0.1855)
OKLCHoklch(49.6% 0.192 285.1)
XYZxyz(17.1265, 10.8767, 55.8293)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46C8 #B1C846
analogous
#4670C8 #5D46C8 #9E46C8
triadic
#5D46C8 #C85D46 #46C85D
tetradic
#5D46C8 #C84670 #B1C846 #46C89E
square
#5D46C8 #C84670 #B1C846 #46C89E
split-complementary
#5D46C8 #C89E46 #70C846
monochromatic
#302272 #4430A1 #5D46C8 #8675D6 #B0A4E4

Accessibility & contrast

On white

6.61
#5D46C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5D46C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D46C8
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46C8#FFFFFF#000000##FFFFFF
##5D46C81.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#306681
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d46c8;
/* rgb */ color: rgb(93, 70, 200);
/* oklch */ color: oklch(49.6% 0.192 285.1);
Tailwind
colors: {
  custom: {
    50: '#947bda',
    500: '#5d46c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d46c8;
$custom-light: #947bda;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46c8",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 250.615,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49597,
    "c": 0.19215,
    "h": 285.1
  },
  "luminance": 0.10878
}

Semantic roles & 50–950 ramp

primary
#5D46C8
secondary
#C7D199
accent
#DE4AC3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D46C8

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

Preview Lab → · Contrast checker → · Palette generator →

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