#5D48BF#5D48BF

#5D48BF is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.2% C 0.178 H 285.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5D48BF
RGBrgb(93, 72, 191)
HSLhsl(251, 48%, 52%)
HSVhsv(251, 62%, 75%)
CMYKcmyk(51.3%, 62.3%, 0%, 25.1%)
CIE-LABlab(39.11, 39.87, -59.79)
CIE-LCHlch(39.11, 71.86, 303.70°)
OKLaboklab(49.19% 0.0489 -0.1714)
OKLCHoklch(49.19% 0.178 285.9)
XYZxyz(16.2327, 10.7227, 50.4945)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D48BF #AABF48
analogous
#486FBF #5D48BF #9948BF
triadic
#5D48BF #BF5D48 #48BF5D
tetradic
#5D48BF #BF486F #AABF48 #48BF99
square
#5D48BF #BF486F #AABF48 #48BF99
split-complementary
#5D48BF #BF9948 #6FBF48
monochromatic
#302468 #453496 #5D48BF #8575CF #ADA3DF

Accessibility & contrast

On white

6.68
#5D48BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5D48BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D48BF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D48BF#FFFFFF#000000##FFFFFF
##5D48BF1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#38647D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5d48bf;
/* rgb */ color: rgb(93, 72, 191);
/* oklch */ color: oklch(49.2% 0.178 285.9);
Tailwind
colors: {
  custom: {
    50: '#937cd3',
    500: '#5d48bf',
    950: '#000000',
  },
}
SCSS
$custom: #5d48bf;
$custom-light: #937cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d48bf",
  "rgb": {
    "r": 93,
    "g": 72,
    "b": 191
  },
  "hsl": {
    "h": 250.588,
    "s": 48.178,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.17819,
    "h": 285.9
  },
  "luminance": 0.10723
}

Semantic roles & 50–950 ramp

primary
#5D48BF
secondary
#C2CC97
accent
#D850C0
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5D48BF

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

Preview Lab → · Contrast checker → · Palette generator →

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