#5D45BF#5D45BF

#5D45BF is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.7% C 0.182 H 286.6°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5D45BF
RGBrgb(93, 69, 191)
HSLhsl(252, 49%, 51%)
HSVhsv(252, 64%, 75%)
CMYKcmyk(51.3%, 63.9%, 0%, 25.1%)
CIE-LABlab(38.45, 41.62, -60.86)
CIE-LCHlch(38.45, 73.73, 304.36°)
OKLaboklab(48.71% 0.0519 -0.1745)
OKLCHoklch(48.71% 0.182 286.6)
XYZxyz(16.0435, 10.3442, 50.4314)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D45BF #A7BF45
analogous
#456ABF #5D45BF #9A45BF
triadic
#5D45BF #BF5D45 #45BF5D
tetradic
#5D45BF #BF456A #A7BF45 #45BF9A
square
#5D45BF #BF456A #A7BF45 #45BF9A
split-complementary
#5D45BF #BF9A45 #6ABF45
monochromatic
#302366 #463394 #5D45BF #8573CF #ACA0DE

Accessibility & contrast

On white

6.84
#5D45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5D45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D45BF
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D45BF#FFFFFF#000000##FFFFFF
##5D45BF1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC3
Deuteranopia (green-blind)
#0057BD
Tritanopia (blue-blind)
#38637C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d45bf;
/* rgb */ color: rgb(93, 69, 191);
/* oklch */ color: oklch(48.7% 0.182 286.6);
Tailwind
colors: {
  custom: {
    50: '#937ad3',
    500: '#5d45bf',
    950: '#000000',
  },
}
SCSS
$custom: #5d45bf;
$custom-light: #937ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d45bf",
  "rgb": {
    "r": 93,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 251.803,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48711,
    "c": 0.18206,
    "h": 286.6
  },
  "luminance": 0.10345
}

Semantic roles & 50–950 ramp

primary
#5D45BF
secondary
#C0CB95
accent
#D84FBD
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5D45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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