#5E45BD#5E45BD

#5E45BD is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.6% C 0.179 H 287.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5E45BD
RGBrgb(94, 69, 189)
HSLhsl(253, 48%, 51%)
HSVhsv(253, 63%, 74%)
CMYKcmyk(50.3%, 63.5%, 0%, 25.9%)
CIE-LABlab(38.39, 41.21, -59.78)
CIE-LCHlch(38.39, 72.61, 304.58°)
OKLaboklab(48.64% 0.0535 -0.1713)
OKLCHoklch(48.64% 0.179 287.3)
XYZxyz(15.9268, 10.3093, 49.2849)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45BD #A4BD45
analogous
#4568BD #5E45BD #9A45BD
triadic
#5E45BD #BD5E45 #45BD5E
tetradic
#5E45BD #BD4568 #A4BD45 #45BD9A
square
#5E45BD #BD4568 #A4BD45 #45BD9A
split-complementary
#5E45BD #BD9A45 #68BD45
monochromatic
#312464 #473491 #5E45BD #8572CD #AC9FDD

Accessibility & contrast

On white

6.86
#5E45BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5E45BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45BD
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45BD#FFFFFF#000000##FFFFFF
##5E45BD1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC1
Deuteranopia (green-blind)
#0057BB
Tritanopia (blue-blind)
#3C627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e45bd;
/* rgb */ color: rgb(94, 69, 189);
/* oklch */ color: oklch(48.6% 0.179 287.3);
Tailwind
colors: {
  custom: {
    50: '#947ad2',
    500: '#5e45bd',
    950: '#000000',
  },
}
SCSS
$custom: #5e45bd;
$custom-light: #947ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45bd",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 252.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48641,
    "c": 0.17946,
    "h": 287.3
  },
  "luminance": 0.1031
}

Semantic roles & 50–950 ramp

primary
#5E45BD
secondary
#BECA94
accent
#D751BB
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5E45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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