#5E48BC#5E48BC

#5E48BC is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.0% C 0.174 H 286.8°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5E48BC
RGBrgb(94, 72, 188)
HSLhsl(251, 46%, 51%)
HSVhsv(251, 62%, 74%)
CMYKcmyk(50%, 61.7%, 0%, 26.3%)
CIE-LABlab(38.98, 39.16, -58.25)
CIE-LCHlch(38.98, 70.19, 303.91°)
OKLaboklab(49.04% 0.0504 -0.1668)
OKLCHoklch(49.04% 0.174 286.8)
XYZxyz(16.0079, 10.6445, 48.7783)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E48BC #A6BC48
analogous
#486CBC #5E48BC #9848BC
triadic
#5E48BC #BC5E48 #48BC5E
tetradic
#5E48BC #BC486C #A6BC48 #48BC98
square
#5E48BC #BC486C #A6BC48 #48BC98
split-complementary
#5E48BC #BC9848 #6CBC48
monochromatic
#312565 #473592 #5E48BC #8575CC #ADA2DD

Accessibility & contrast

On white

6.71
#5E48BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5E48BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E48BC
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E48BC#FFFFFF#000000##FFFFFF
##5E48BC1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#3C637B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e48bc;
/* rgb */ color: rgb(94, 72, 188);
/* oklch */ color: oklch(49.0% 0.174 286.8);
Tailwind
colors: {
  custom: {
    50: '#937cd1',
    500: '#5e48bc',
    950: '#000000',
  },
}
SCSS
$custom: #5e48bc;
$custom-light: #937cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e48bc",
  "rgb": {
    "r": 94,
    "g": 72,
    "b": 188
  },
  "hsl": {
    "h": 251.379,
    "s": 46.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49042,
    "c": 0.17425,
    "h": 286.8
  },
  "luminance": 0.10645
}

Semantic roles & 50–950 ramp

primary
#5E48BC
secondary
#C0CA96
accent
#D652BD
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E48BC

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

Preview Lab → · Contrast checker → · Palette generator →

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