#5E45C8#5E45C8

#5E45C8 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.5% C 0.193 H 285.7°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5E45C8
RGBrgb(94, 69, 200)
HSLhsl(251, 54%, 53%)
HSVhsv(251, 66%, 78%)
CMYKcmyk(53%, 65.5%, 0%, 21.6%)
CIE-LABlab(39.25, 44.48, -64.80)
CIE-LCHlch(39.25, 78.60, 304.47°)
OKLaboklab(49.53% 0.0523 -0.1861)
OKLCHoklch(49.53% 0.193 285.7)
XYZxyz(17.1664, 10.8051, 55.8134)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45C8 #AFC845
analogous
#456EC8 #5E45C8 #9F45C8
triadic
#5E45C8 #C85E45 #45C85E
tetradic
#5E45C8 #C8456E #AFC845 #45C89F
square
#5E45C8 #C8456E #AFC845 #45C89F
split-complementary
#5E45C8 #C89F45 #6EC845
monochromatic
#312171 #452FA0 #5E45C8 #8774D6 #B0A3E4

Accessibility & contrast

On white

6.64
#5E45C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5E45C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45C8
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45C8#FFFFFF#000000##FFFFFF
##5E45C81.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#336680
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e45c8;
/* rgb */ color: rgb(94, 69, 200);
/* oklch */ color: oklch(49.5% 0.193 285.7);
Tailwind
colors: {
  custom: {
    50: '#957ada',
    500: '#5e45c8',
    950: '#000000',
  },
}
SCSS
$custom: #5e45c8;
$custom-light: #957ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45c8",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 251.45,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49531,
    "c": 0.19328,
    "h": 285.7
  },
  "luminance": 0.10806
}

Semantic roles & 50–950 ramp

primary
#5E45C8
secondary
#C6D198
accent
#DE4AC2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E45C8

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

Preview Lab → · Contrast checker → · Palette generator →

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