#5D48BB#5D48BB

#5D48BB is a mid, vivid violet. Relative luminance 0.105; OKLCH L 48.9% C 0.173 H 286.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5D48BB
RGBrgb(93, 72, 187)
HSLhsl(251, 46%, 51%)
HSVhsv(251, 61%, 73%)
CMYKcmyk(50.3%, 61.5%, 0%, 26.7%)
CIE-LABlab(38.81, 38.66, -57.93)
CIE-LCHlch(38.81, 69.65, 303.72°)
OKLaboklab(48.88% 0.0491 -0.1659)
OKLCHoklch(48.88% 0.173 286.5)
XYZxyz(15.7986, 10.5490, 48.2078)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D48BB #A6BB48
analogous
#486CBB #5D48BB #9748BB
triadic
#5D48BB #BB5D48 #48BB5D
tetradic
#5D48BB #BB486C #A6BB48 #48BB97
square
#5D48BB #BB486C #A6BB48 #48BB97
split-complementary
#5D48BB #BB9748 #6CBB48
monochromatic
#302564 #463690 #5D48BB #8475CC #ACA1DC

Accessibility & contrast

On white

6.75
#5D48BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5D48BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D48BB
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D48BB#FFFFFF#000000##FFFFFF
##5D48BB1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d48bb;
/* rgb */ color: rgb(93, 72, 187);
/* oklch */ color: oklch(48.9% 0.173 286.5);
Tailwind
colors: {
  custom: {
    50: '#927cd0',
    500: '#5d48bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d48bb;
$custom-light: #927cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d48bb",
  "rgb": {
    "r": 93,
    "g": 72,
    "b": 187
  },
  "hsl": {
    "h": 250.957,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48876,
    "c": 0.17302,
    "h": 286.5
  },
  "luminance": 0.1055
}

Semantic roles & 50–950 ramp

primary
#5D48BB
secondary
#C0C996
accent
#D552BE
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D48BB

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

Preview Lab → · Contrast checker → · Palette generator →

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