#5B48AE#5B48AE

#5B48AE is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.7% C 0.156 H 287.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5B48AE
RGBrgb(91, 72, 174)
HSLhsl(251, 41%, 48%)
HSVhsv(251, 59%, 68%)
CMYKcmyk(47.7%, 58.6%, 0%, 31.8%)
CIE-LABlab(37.69, 34.33, -52.09)
CIE-LCHlch(37.69, 62.38, 303.39°)
OKLaboklab(47.71% 0.047 -0.1488)
OKLCHoklch(47.71% 0.156 287.5)
XYZxyz(14.2695, 9.9143, 41.1980)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48AE #9BAE48
analogous
#4868AE #5B48AE #8E48AE
triadic
#5B48AE #AE5B48 #48AE5B
tetradic
#5B48AE #AE4868 #9BAE48 #48AE8E
square
#5B48AE #AE4868 #9BAE48 #48AE8E
split-complementary
#5B48AE #AE8E48 #68AE48
monochromatic
#2E2457 #443683 #5B48AE #7F70C4 #A69BD6

Accessibility & contrast

On white

7.04
#5B48AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B48AE
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48AE#FFFFFF#000000##FFFFFF
##5B48AE1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#405F74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b48ae;
/* rgb */ color: rgb(91, 72, 174);
/* oklch */ color: oklch(47.7% 0.156 287.5);
Tailwind
colors: {
  custom: {
    50: '#907cc7',
    500: '#5b48ae',
    950: '#000000',
  },
}
SCSS
$custom: #5b48ae;
$custom-light: #907cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48ae",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 174
  },
  "hsl": {
    "h": 251.176,
    "s": 41.463,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.15602,
    "h": 287.5
  },
  "luminance": 0.09915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B48AE

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

Preview Lab → · Contrast checker → · Palette generator →

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