#5E48CC#5E48CC

#5E48CC is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.3% C 0.195 H 284.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5E48CC
RGBrgb(94, 72, 204)
HSLhsl(250, 56%, 54%)
HSVhsv(250, 65%, 80%)
CMYKcmyk(53.9%, 64.7%, 0%, 20%)
CIE-LABlab(40.20, 43.97, -65.57)
CIE-LCHlch(40.20, 78.95, 303.85°)
OKLaboklab(50.32% 0.049 -0.1883)
OKLCHoklch(50.32% 0.195 284.6)
XYZxyz(17.8292, 11.3730, 58.3708)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E48CC #B6CC48
analogous
#4874CC #5E48CC #A048CC
triadic
#5E48CC #CC5E48 #48CC5E
tetradic
#5E48CC #CC4874 #B6CC48 #48CCA0
square
#5E48CC #CC4874 #B6CC48 #48CCA0
split-complementary
#5E48CC #CCA048 #74CC48
monochromatic
#302178 #432FA8 #5E48CC #8878D9 #B2A8E7

Accessibility & contrast

On white

6.41
#5E48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5E48CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E48CC
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E48CC#FFFFFF#000000##FFFFFF
##5E48CC1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#2E6983
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e48cc;
/* rgb */ color: rgb(94, 72, 204);
/* oklch */ color: oklch(50.3% 0.195 284.6);
Tailwind
colors: {
  custom: {
    50: '#957cdd',
    500: '#5e48cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e48cc;
$custom-light: #957cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e48cc",
  "rgb": {
    "r": 94,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 250,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50319,
    "c": 0.1946,
    "h": 284.6
  },
  "luminance": 0.11374
}

Semantic roles & 50–950 ramp

primary
#5E48CC
secondary
#CBD49C
accent
#E048C6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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