#5D45D1#5D45D1

#5D45D1 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.2% C 0.204 H 284.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5D45D1
RGBrgb(93, 69, 209)
HSLhsl(250, 60%, 55%)
HSVhsv(250, 67%, 82%)
CMYKcmyk(55.5%, 67%, 0%, 18%)
CIE-LABlab(39.89, 47.00, -68.97)
CIE-LCHlch(39.89, 83.46, 304.27°)
OKLaboklab(50.2% 0.0498 -0.1983)
OKLCHoklch(50.2% 0.204 284.1)
XYZxyz(18.1474, 11.1858, 61.5121)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45D1 #B9D145
analogous
#4573D1 #5D45D1 #A345D1
triadic
#5D45D1 #D15D45 #45D15D
tetradic
#5D45D1 #D14573 #B9D145 #45D1A3
square
#5D45D1 #D14573 #B9D145 #45D1A3
split-complementary
#5D45D1 #D1A345 #73D145
monochromatic
#2F1F7D #412BAE #5D45D1 #8876DD #B2A7E9

Accessibility & contrast

On white

6.49
#5D45D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5D45D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45D1
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45D1#FFFFFF#000000##FFFFFF
##5D45D11.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D5
Deuteranopia (green-blind)
#0059CE
Tritanopia (blue-blind)
#256985
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d45d1;
/* rgb */ color: rgb(93, 69, 209);
/* oklch */ color: oklch(50.2% 0.204 284.1);
Tailwind
colors: {
  custom: {
    50: '#967ae0',
    500: '#5d45d1',
    950: '#000000',
  },
}
SCSS
$custom: #5d45d1;
$custom-light: #967ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45d1",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 250.286,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50199,
    "c": 0.20448,
    "h": 284.1
  },
  "luminance": 0.11187
}

Semantic roles & 50–950 ramp

primary
#5D45D1
secondary
#CCD79B
accent
#E344C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5D45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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