#5E45BF#5E45BF

#5E45BF is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.182 H 287.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5E45BF
RGBrgb(94, 69, 191)
HSLhsl(252, 49%, 51%)
HSVhsv(252, 64%, 75%)
CMYKcmyk(50.8%, 63.9%, 0%, 25.1%)
CIE-LABlab(38.55, 41.80, -60.70)
CIE-LCHlch(38.55, 73.71, 304.55°)
OKLaboklab(48.8% 0.0533 -0.174)
OKLCHoklch(48.8% 0.182 287)
XYZxyz(16.1454, 10.3967, 50.4362)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45BF #A6BF45
analogous
#4569BF #5E45BF #9B45BF
triadic
#5E45BF #BF5E45 #45BF5E
tetradic
#5E45BF #BF4569 #A6BF45 #45BF9B
square
#5E45BF #BF4569 #A6BF45 #45BF9B
split-complementary
#5E45BF #BF9B45 #69BF45
monochromatic
#312366 #473394 #5E45BF #8573CF #ADA0DE

Accessibility & contrast

On white

6.82
#5E45BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5E45BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45BF
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45BF#FFFFFF#000000##FFFFFF
##5E45BF1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e45bf;
/* rgb */ color: rgb(94, 69, 191);
/* oklch */ color: oklch(48.8% 0.182 287.0);
Tailwind
colors: {
  custom: {
    50: '#947ad3',
    500: '#5e45bf',
    950: '#000000',
  },
}
SCSS
$custom: #5e45bf;
$custom-light: #947ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45bf",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 252.295,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.488,
    "c": 0.18199,
    "h": 287
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5E45BF

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

Preview Lab → · Contrast checker → · Palette generator →

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