#5E45BB#5E45BB

#5E45BB is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.5% C 0.177 H 287.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5E45BB
RGBrgb(94, 69, 187)
HSLhsl(253, 46%, 50%)
HSVhsv(253, 63%, 73%)
CMYKcmyk(49.7%, 63.1%, 0%, 26.7%)
CIE-LABlab(38.24, 40.61, -58.86)
CIE-LCHlch(38.24, 71.51, 304.61°)
OKLaboklab(48.48% 0.0536 -0.1686)
OKLCHoklch(48.48% 0.177 287.6)
XYZxyz(15.7112, 10.2231, 48.1495)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45BB #A2BB45
analogous
#4567BB #5E45BB #9945BB
triadic
#5E45BB #BB5E45 #45BB5E
tetradic
#5E45BB #BB4567 #A2BB45 #45BB99
square
#5E45BB #BB4567 #A2BB45 #45BB99
split-complementary
#5E45BB #BB9945 #67BB45
monochromatic
#312462 #47348F #5E45BB #8572CB #AC9FDC

Accessibility & contrast

On white

6.90
#5E45BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5E45BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45BB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45BB#FFFFFF#000000##FFFFFF
##5E45BB1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#3D6179
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e45bb;
/* rgb */ color: rgb(94, 69, 187);
/* oklch */ color: oklch(48.5% 0.177 287.6);
Tailwind
colors: {
  custom: {
    50: '#937ad0',
    500: '#5e45bb',
    950: '#000000',
  },
}
SCSS
$custom: #5e45bb;
$custom-light: #937ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45bb",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 252.712,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48482,
    "c": 0.17691,
    "h": 287.6
  },
  "luminance": 0.10224
}

Semantic roles & 50–950 ramp

primary
#5E45BB
secondary
#BDC894
accent
#D652BA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E45BB

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

Preview Lab → · Contrast checker → · Palette generator →

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