#5E45CF#5E45CF

#5E45CF is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.1% C 0.202 H 284.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5E45CF
RGBrgb(94, 69, 207)
HSLhsl(251, 59%, 54%)
HSVhsv(251, 67%, 81%)
CMYKcmyk(54.6%, 66.7%, 0%, 18.8%)
CIE-LABlab(39.82, 46.57, -67.94)
CIE-LCHlch(39.82, 82.36, 304.43°)
OKLaboklab(50.11% 0.0514 -0.1953)
OKLCHoklch(50.11% 0.202 284.7)
XYZxyz(18.0033, 11.1399, 60.2209)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45CF #B6CF45
analogous
#4571CF #5E45CF #A345CF
triadic
#5E45CF #CF5E45 #45CF5E
tetradic
#5E45CF #CF4571 #B6CF45 #45CFA3
square
#5E45CF #CF4571 #B6CF45 #45CFA3
split-complementary
#5E45CF #CFA345 #71CF45
monochromatic
#30207A #432CAB #5E45CF #8876DC #B2A6E8

Accessibility & contrast

On white

6.51
#5E45CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5E45CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45CF
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45CF#FFFFFF#000000##FFFFFF
##5E45CF1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#2B6884
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e45cf;
/* rgb */ color: rgb(94, 69, 207);
/* oklch */ color: oklch(50.1% 0.202 284.7);
Tailwind
colors: {
  custom: {
    50: '#967adf',
    500: '#5e45cf',
    950: '#000000',
  },
}
SCSS
$custom: #5e45cf;
$custom-light: #967adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45cf",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 250.87,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50114,
    "c": 0.20192,
    "h": 284.7
  },
  "luminance": 0.11141
}

Semantic roles & 50–950 ramp

primary
#5E45CF
secondary
#CBD59B
accent
#E246C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E45CF

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

Preview Lab → · Contrast checker → · Palette generator →

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