#5B48AD#5B48AD

#5B48AD is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.6% C 0.155 H 287.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5B48AD
RGBrgb(91, 72, 173)
HSLhsl(251, 41%, 48%)
HSVhsv(251, 58%, 68%)
CMYKcmyk(47.4%, 58.4%, 0%, 32.2%)
CIE-LABlab(37.62, 34.03, -51.61)
CIE-LCHlch(37.62, 61.82, 303.40°)
OKLaboklab(47.64% 0.047 -0.1474)
OKLCHoklch(47.64% 0.155 287.7)
XYZxyz(14.1724, 9.8754, 40.6865)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48AD #9AAD48
analogous
#4867AD #5B48AD #8D48AD
triadic
#5B48AD #AD5B48 #48AD5B
tetradic
#5B48AD #AD4867 #9AAD48 #48AD8D
square
#5B48AD #AD4867 #9AAD48 #48AD8D
split-complementary
#5B48AD #AD8D48 #67AD48
monochromatic
#2E2457 #443682 #5B48AD #7F6FC3 #A59AD5

Accessibility & contrast

On white

7.06
#5B48AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5B48AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B48AD
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48AD#FFFFFF#000000##FFFFFF
##5B48AD1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB0
Deuteranopia (green-blind)
#0056AB
Tritanopia (blue-blind)
#405F73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b48ad;
/* rgb */ color: rgb(91, 72, 173);
/* oklch */ color: oklch(47.6% 0.155 287.7);
Tailwind
colors: {
  custom: {
    50: '#8f7cc6',
    500: '#5b48ad',
    950: '#000000',
  },
}
SCSS
$custom: #5b48ad;
$custom-light: #8f7cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48ad",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 173
  },
  "hsl": {
    "h": 251.287,
    "s": 41.224,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47637,
    "c": 0.15467,
    "h": 287.7
  },
  "luminance": 0.09876
}

Semantic roles & 50–950 ramp

primary
#5B48AD
secondary
#B8C18F
accent
#D157BA
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B48AD

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

Preview Lab → · Contrast checker → · Palette generator →

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