#5E48BB#5E48BB

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

Color values

HEX#5E48BB
RGBrgb(94, 72, 187)
HSLhsl(251, 46%, 51%)
HSVhsv(251, 61%, 73%)
CMYKcmyk(49.7%, 61.5%, 0%, 26.7%)
CIE-LABlab(38.90, 38.86, -57.78)
CIE-LCHlch(38.90, 69.63, 303.92°)
OKLaboklab(48.97% 0.0505 -0.1654)
OKLCHoklch(48.97% 0.173 287)
XYZxyz(15.9005, 10.6015, 48.2126)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E48BB #A5BB48
analogous
#486BBB #5E48BB #9748BB
triadic
#5E48BB #BB5E48 #48BB5E
tetradic
#5E48BB #BB486B #A5BB48 #48BB97
square
#5E48BB #BB486B #A5BB48 #48BB97
split-complementary
#5E48BB #BB9748 #6BBB48
monochromatic
#312564 #473690 #5E48BB #8575CC #ADA1DC

Accessibility & contrast

On white

6.73
#5E48BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5E48BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E48BB
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E48BB#FFFFFF#000000##FFFFFF
##5E48BB1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#3D637B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e48bb;
/* rgb */ color: rgb(94, 72, 187);
/* oklch */ color: oklch(49.0% 0.173 287.0);
Tailwind
colors: {
  custom: {
    50: '#937cd0',
    500: '#5e48bb',
    950: '#000000',
  },
}
SCSS
$custom: #5e48bb;
$custom-light: #937cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e48bb",
  "rgb": {
    "r": 94,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 251.478,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48965,
    "c": 0.17295,
    "h": 287
  },
  "luminance": 0.10602
}

Semantic roles & 50–950 ramp

primary
#5E48BB
secondary
#BFC996
accent
#D552BC
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5E48BB

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

Preview Lab → · Contrast checker → · Palette generator →

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