#5E45CC#5E45CC

#5E45CC is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.198 H 285.1°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5E45CC
RGBrgb(94, 69, 204)
HSLhsl(251, 57%, 54%)
HSVhsv(251, 66%, 80%)
CMYKcmyk(53.9%, 66.2%, 0%, 20%)
CIE-LABlab(39.57, 45.67, -66.60)
CIE-LCHlch(39.57, 80.76, 304.44°)
OKLaboklab(49.86% 0.0518 -0.1913)
OKLCHoklch(49.86% 0.198 285.1)
XYZxyz(17.6400, 10.9946, 58.3077)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45CC #B3CC45
analogous
#456FCC #5E45CC #A145CC
triadic
#5E45CC #CC5E45 #45CC5E
tetradic
#5E45CC #CC456F #B3CC45 #45CCA1
square
#5E45CC #CC456F #B3CC45 #45CCA1
split-complementary
#5E45CC #CCA145 #6FCC45
monochromatic
#302076 #442EA6 #5E45CC #8875D9 #B1A5E6

Accessibility & contrast

On white

6.56
#5E45CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5E45CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45CC
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45CC#FFFFFF#000000##FFFFFF
##5E45CC1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#2F6783
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5e45cc;
/* rgb */ color: rgb(94, 69, 204);
/* oklch */ color: oklch(49.9% 0.198 285.1);
Tailwind
colors: {
  custom: {
    50: '#967add',
    500: '#5e45cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e45cc;
$custom-light: #967add;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45cc",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 251.111,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49863,
    "c": 0.19823,
    "h": 285.1
  },
  "luminance": 0.10996
}

Semantic roles & 50–950 ramp

primary
#5E45CC
secondary
#C9D399
accent
#E048C4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E45CC

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

Preview Lab → · Contrast checker → · Palette generator →

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