#5E45D2#5E45D2

#5E45D2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.4% C 0.206 H 284.4°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5E45D2
RGBrgb(94, 69, 210)
HSLhsl(251, 61%, 55%)
HSVhsv(251, 67%, 82%)
CMYKcmyk(55.2%, 67.1%, 0%, 17.6%)
CIE-LABlab(40.06, 47.46, -69.27)
CIE-LCHlch(40.06, 83.97, 304.42°)
OKLaboklab(50.37% 0.051 -0.1992)
OKLCHoklch(50.37% 0.206 284.4)
XYZxyz(18.3735, 11.2880, 62.1709)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E45D2 #B9D245
analogous
#4573D2 #5E45D2 #A445D2
triadic
#5E45D2 #D25E45 #45D25E
tetradic
#5E45D2 #D24573 #B9D245 #45D2A4
square
#5E45D2 #D24573 #B9D245 #45D2A4
split-complementary
#5E45D2 #D2A445 #73D245
monochromatic
#2F1F7E #422AAF #5E45D2 #8976DE #B3A8EA

Accessibility & contrast

On white

6.45
#5E45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5E45D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E45D2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E45D2#FFFFFF#000000##FFFFFF
##5E45D21.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005ACF
Tritanopia (blue-blind)
#276986
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e45d2;
/* rgb */ color: rgb(94, 69, 210);
/* oklch */ color: oklch(50.4% 0.206 284.4);
Tailwind
colors: {
  custom: {
    50: '#977ae1',
    500: '#5e45d2',
    950: '#000000',
  },
}
SCSS
$custom: #5e45d2;
$custom-light: #977ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e45d2",
  "rgb": {
    "r": 94,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 250.638,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50368,
    "c": 0.20559,
    "h": 284.4
  },
  "luminance": 0.11289
}

Semantic roles & 50–950 ramp

primary
#5E45D2
secondary
#CDD79C
accent
#E444C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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