#5D45CE#5D45CE

#5D45CE is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 49.9% C 0.201 H 284.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5D45CE
RGBrgb(93, 69, 206)
HSLhsl(251, 58%, 54%)
HSVhsv(251, 67%, 81%)
CMYKcmyk(54.9%, 66.5%, 0%, 19.2%)
CIE-LABlab(39.65, 46.10, -67.64)
CIE-LCHlch(39.65, 81.86, 304.28°)
OKLaboklab(49.95% 0.0502 -0.1944)
OKLCHoklch(49.95% 0.201 284.5)
XYZxyz(17.7795, 11.0386, 59.5744)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45CE #B6CE45
analogous
#4572CE #5D45CE #A245CE
triadic
#5D45CE #CE5D45 #45CE5D
tetradic
#5D45CE #CE4572 #B6CE45 #45CEA2
square
#5D45CE #CE4572 #B6CE45 #45CEA2
split-complementary
#5D45CE #CEA245 #72CE45
monochromatic
#2F2079 #422DA9 #5D45CE #8775DB #B1A6E8

Accessibility & contrast

On white

6.55
#5D45CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5D45CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45CE
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45CE#FFFFFF#000000##FFFFFF
##5D45CE1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#296884
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d45ce;
/* rgb */ color: rgb(93, 69, 206);
/* oklch */ color: oklch(49.9% 0.201 284.5);
Tailwind
colors: {
  custom: {
    50: '#957ade',
    500: '#5d45ce',
    950: '#000000',
  },
}
SCSS
$custom: #5d45ce;
$custom-light: #957ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45ce",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 250.511,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49945,
    "c": 0.2008,
    "h": 284.5
  },
  "luminance": 0.1104
}

Semantic roles & 50–950 ramp

primary
#5D45CE
secondary
#CAD59A
accent
#E246C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D45CE

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

Preview Lab → · Contrast checker → · Palette generator →

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