#5E45BC#5E45BC

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

Color values

HEX#5E45BC
RGBrgb(94, 69, 188)
HSLhsl(253, 47%, 50%)
HSVhsv(253, 63%, 74%)
CMYKcmyk(50%, 63.3%, 0%, 26.3%)
CIE-LABlab(38.32, 40.91, -59.32)
CIE-LCHlch(38.32, 72.06, 304.59°)
OKLaboklab(48.56% 0.0536 -0.1699)
OKLCHoklch(48.56% 0.178 287.5)
XYZxyz(15.8187, 10.2660, 48.7152)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45BC #A3BC45
analogous
#4567BC #5E45BC #9945BC
triadic
#5E45BC #BC5E45 #45BC5E
tetradic
#5E45BC #BC4567 #A3BC45 #45BC99
square
#5E45BC #BC4567 #A3BC45 #45BC99
split-complementary
#5E45BC #BC9945 #67BC45
monochromatic
#312463 #473490 #5E45BC #8572CC #AC9FDC

Accessibility & contrast

On white

6.88
#5E45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5E45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45BC
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45BC#FFFFFF#000000##FFFFFF
##5E45BC1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#3D627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e45bc;
/* rgb */ color: rgb(94, 69, 188);
/* oklch */ color: oklch(48.6% 0.178 287.5);
Tailwind
colors: {
  custom: {
    50: '#937ad1',
    500: '#5e45bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e45bc;
$custom-light: #937ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45bc",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 252.605,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48561,
    "c": 0.17819,
    "h": 287.5
  },
  "luminance": 0.10267
}

Semantic roles & 50–950 ramp

primary
#5E45BC
secondary
#BEC994
accent
#D751BB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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