#5D45CD#5D45CD

#5D45CD is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.200 H 284.6°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5D45CD
RGBrgb(93, 69, 205)
HSLhsl(251, 58%, 54%)
HSVhsv(251, 66%, 80%)
CMYKcmyk(54.6%, 66.3%, 0%, 19.6%)
CIE-LABlab(39.56, 45.80, -67.19)
CIE-LCHlch(39.56, 81.32, 304.28°)
OKLaboklab(49.86% 0.0503 -0.1931)
OKLCHoklch(49.86% 0.2 284.6)
XYZxyz(17.6584, 10.9902, 58.9366)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45CD #B5CD45
analogous
#4571CD #5D45CD #A145CD
triadic
#5D45CD #CD5D45 #45CD5D
tetradic
#5D45CD #CD4571 #B5CD45 #45CDA1
square
#5D45CD #CD4571 #B5CD45 #45CDA1
split-complementary
#5D45CD #CDA145 #71CD45
monochromatic
#302077 #432DA8 #5D45CD #8775DA #B1A5E7

Accessibility & contrast

On white

6.57
#5D45CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5D45CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45CD
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45CD#FFFFFF#000000##FFFFFF
##5D45CD1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#2B6783
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5d45cd;
/* rgb */ color: rgb(93, 69, 205);
/* oklch */ color: oklch(49.9% 0.200 284.6);
Tailwind
colors: {
  custom: {
    50: '#957add',
    500: '#5d45cd',
    950: '#000000',
  },
}
SCSS
$custom: #5d45cd;
$custom-light: #957add;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45cd",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 250.588,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49861,
    "c": 0.19957,
    "h": 284.6
  },
  "luminance": 0.10991
}

Semantic roles & 50–950 ramp

primary
#5D45CD
secondary
#CAD49A
accent
#E147C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D45CD

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

Preview Lab → · Contrast checker → · Palette generator →

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