#5E48B0#5E48B0

#5E48B0 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.1% C 0.159 H 288.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#5E48B0
RGBrgb(94, 72, 176)
HSLhsl(253, 42%, 49%)
HSVhsv(253, 59%, 69%)
CMYKcmyk(46.6%, 59.1%, 0%, 31%)
CIE-LABlab(38.11, 35.58, -52.58)
CIE-LCHlch(38.11, 63.49, 304.08°)
OKLaboklab(48.13% 0.0509 -0.1501)
OKLCHoklch(48.13% 0.159 288.7)
XYZxyz(14.7677, 10.1484, 42.2466)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E48B0 #9AB048
analogous
#4866B0 #5E48B0 #9248B0
triadic
#5E48B0 #B05E48 #48B05E
tetradic
#5E48B0 #B04866 #9AB048 #48B092
square
#5E48B0 #B04866 #9AB048 #48B092
split-complementary
#5E48B0 #B09248 #66B048
monochromatic
#302459 #473685 #5E48B0 #8270C5 #A89CD6

Accessibility & contrast

On white

6.93
#5E48B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5E48B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E48B0
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E48B0#FFFFFF#000000##FFFFFF
##5E48B01.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#0057AE
Tritanopia (blue-blind)
#445F75
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e48b0;
/* rgb */ color: rgb(94, 72, 176);
/* oklch */ color: oklch(48.1% 0.159 288.7);
Tailwind
colors: {
  custom: {
    50: '#927cc8',
    500: '#5e48b0',
    950: '#000000',
  },
}
SCSS
$custom: #5e48b0;
$custom-light: #927cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e48b0",
  "rgb": {
    "r": 94,
    "g": 72,
    "b": 176
  },
  "hsl": {
    "h": 252.692,
    "s": 41.935,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48132,
    "c": 0.15854,
    "h": 288.7
  },
  "luminance": 0.10149
}

Semantic roles & 50–950 ramp

primary
#5E48B0
secondary
#B8C391
accent
#D256B8
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5E48B0

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

Preview Lab → · Contrast checker → · Palette generator →

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