#5D45D2#5D45D2

#5D45D2 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.3% C 0.206 H 284.0°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5D45D2
RGBrgb(93, 69, 210)
HSLhsl(250, 61%, 55%)
HSVhsv(250, 67%, 82%)
CMYKcmyk(55.7%, 67.1%, 0%, 17.6%)
CIE-LABlab(39.97, 47.30, -69.41)
CIE-LCHlch(39.97, 84.00, 304.27°)
OKLaboklab(50.28% 0.0496 -0.1996)
OKLCHoklch(50.28% 0.206 284)
XYZxyz(18.2716, 11.2354, 62.1661)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45D2 #BAD245
analogous
#4573D2 #5D45D2 #A445D2
triadic
#5D45D2 #D25D45 #45D25D
tetradic
#5D45D2 #D24573 #BAD245 #45D2A4
square
#5D45D2 #D24573 #BAD245 #45D2A4
split-complementary
#5D45D2 #D2A445 #73D245
monochromatic
#2F1F7E #412AAF #5D45D2 #8876DE #B3A8EA

Accessibility & contrast

On white

6.47
#5D45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5D45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45D2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45D2#FFFFFF#000000##FFFFFF
##5D45D21.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#246986
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d45d2;
/* rgb */ color: rgb(93, 69, 210);
/* oklch */ color: oklch(50.3% 0.206 284.0);
Tailwind
colors: {
  custom: {
    50: '#967ae1',
    500: '#5d45d2',
    950: '#000000',
  },
}
SCSS
$custom: #5d45d2;
$custom-light: #967ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45d2",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 250.213,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50284,
    "c": 0.20571,
    "h": 284
  },
  "luminance": 0.11237
}

Semantic roles & 50–950 ramp

primary
#5D45D2
secondary
#CDD79C
accent
#E444C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5D45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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