#5D48AF#5D48AF

#5D48AF is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.0% C 0.157 H 288.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5D48AF
RGBrgb(93, 72, 175)
HSLhsl(252, 42%, 48%)
HSVhsv(252, 59%, 69%)
CMYKcmyk(46.9%, 58.9%, 0%, 31.4%)
CIE-LABlab(37.94, 35.06, -52.26)
CIE-LCHlch(37.94, 62.93, 303.86°)
OKLaboklab(47.97% 0.0496 -0.1492)
OKLCHoklch(47.97% 0.157 288.4)
XYZxyz(14.5672, 10.0564, 41.7227)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D48AF #9AAF48
analogous
#4866AF #5D48AF #9048AF
triadic
#5D48AF #AF5D48 #48AF5D
tetradic
#5D48AF #AF4866 #9AAF48 #48AF90
square
#5D48AF #AF4866 #9AAF48 #48AF90
split-complementary
#5D48AF #AF9048 #66AF48
monochromatic
#2F2458 #463684 #5D48AF #8170C4 #A79BD6

Accessibility & contrast

On white

6.97
#5D48AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5D48AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D48AF
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D48AF#FFFFFF#000000##FFFFFF
##5D48AF1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#435F74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d48af;
/* rgb */ color: rgb(93, 72, 175);
/* oklch */ color: oklch(48.0% 0.157 288.4);
Tailwind
colors: {
  custom: {
    50: '#917cc8',
    500: '#5d48af',
    950: '#000000',
  },
}
SCSS
$custom: #5d48af;
$custom-light: #917cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d48af",
  "rgb": {
    "r": 93,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 252.233,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47966,
    "c": 0.15726,
    "h": 288.4
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D48AF

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

Preview Lab → · Contrast checker → · Palette generator →

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