#5E48CA#5E48CA

#5E48CA is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.2% C 0.192 H 284.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#5E48CA
RGBrgb(94, 72, 202)
HSLhsl(250, 55%, 54%)
HSVhsv(250, 64%, 79%)
CMYKcmyk(53.5%, 64.4%, 0%, 20.8%)
CIE-LABlab(40.04, 43.37, -64.67)
CIE-LCHlch(40.04, 77.87, 303.85°)
OKLaboklab(50.16% 0.0492 -0.1857)
OKLCHoklch(50.16% 0.192 284.9)
XYZxyz(17.5909, 11.2777, 57.1156)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E48CA #B4CA48
analogous
#4873CA #5E48CA #9F48CA
triadic
#5E48CA #CA5E48 #48CA5E
tetradic
#5E48CA #CA4873 #B4CA48 #48CA9F
square
#5E48CA #CA4873 #B4CA48 #48CA9F
split-complementary
#5E48CA #CA9F48 #73CA48
monochromatic
#302276 #4430A5 #5E48CA #8877D8 #B2A7E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E48CA#FFFFFF#000000##FFFFFF
##5E48CA1.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)
#0062CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#306882
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e48ca;
/* rgb */ color: rgb(94, 72, 202);
/* oklch */ color: oklch(50.2% 0.192 284.9);
Tailwind
colors: {
  custom: {
    50: '#957cdb',
    500: '#5e48ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e48ca;
$custom-light: #957cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e48ca",
  "rgb": {
    "r": 94,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 250.154,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50155,
    "c": 0.19209,
    "h": 284.9
  },
  "luminance": 0.11279
}

Semantic roles & 50–950 ramp

primary
#5E48CA
secondary
#C9D39B
accent
#DE49C5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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