#5B48AF#5B48AF

#5B48AF is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.8% C 0.157 H 287.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5B48AF
RGBrgb(91, 72, 175)
HSLhsl(251, 42%, 48%)
HSVhsv(251, 59%, 69%)
CMYKcmyk(48%, 58.9%, 0%, 31.4%)
CIE-LABlab(37.76, 34.63, -52.57)
CIE-LCHlch(37.76, 62.95, 303.38°)
OKLaboklab(47.79% 0.047 -0.1502)
OKLCHoklch(47.79% 0.157 287.4)
XYZxyz(14.3674, 9.9534, 41.7133)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B48AF #9CAF48
analogous
#4868AF #5B48AF #8E48AF
triadic
#5B48AF #AF5B48 #48AF5B
tetradic
#5B48AF #AF4868 #9CAF48 #48AF8E
square
#5B48AF #AF4868 #9CAF48 #48AF8E
split-complementary
#5B48AF #AF8E48 #68AF48
monochromatic
#2E2458 #443684 #5B48AF #8070C4 #A69BD6

Accessibility & contrast

On white

7.02
#5B48AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5B48AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B48AF
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B48AF#FFFFFF#000000##FFFFFF
##5B48AF1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#3F5F74
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b48af;
/* rgb */ color: rgb(91, 72, 175);
/* oklch */ color: oklch(47.8% 0.157 287.4);
Tailwind
colors: {
  custom: {
    50: '#907cc8',
    500: '#5b48af',
    950: '#000000',
  },
}
SCSS
$custom: #5b48af;
$custom-light: #907cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b48af",
  "rgb": {
    "r": 91,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 251.068,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47786,
    "c": 0.15735,
    "h": 287.4
  },
  "luminance": 0.09954
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B48AF

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

Preview Lab → · Contrast checker → · Palette generator →

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