#5B148D#5B148D

#5B148D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.180 H 305.3°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5B148D
RGBrgb(91, 20, 141)
HSLhsl(275, 75%, 32%)
HSVhsv(275, 86%, 55%)
CMYKcmyk(35.5%, 85.8%, 0%, 44.7%)
CIE-LABlab(25.71, 51.22, -51.53)
CIE-LCHlch(25.71, 72.65, 314.83°)
OKLaboklab(38.32% 0.1042 -0.1469)
OKLCHoklch(38.32% 0.18 305.3)
XYZxyz(9.3712, 4.6476, 25.5975)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B148D #468D14
analogous
#1F148D #5B148D #8D1483
triadic
#5B148D #8D5B14 #148D5B
tetradic
#5B148D #8D1F14 #468D14 #14838D
square
#5B148D #8D1F14 #468D14 #14838D
split-complementary
#5B148D #838D14 #148D1F
monochromatic
#160522 #380C57 #5B148D #7E1CC3 #9C39E3

Accessibility & contrast

On white

10.88
#5B148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B148D
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B148D#FFFFFF#000000##FFFFFF
##5B148D1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#513753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b148d;
/* rgb */ color: rgb(91, 20, 141);
/* oklch */ color: oklch(38.3% 0.180 305.3);
Tailwind
colors: {
  custom: {
    50: '#8f5daf',
    500: '#5b148d',
    950: '#000000',
  },
}
SCSS
$custom: #5b148d;
$custom-light: #8f5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b148d",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 275.207,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38315,
    "c": 0.18014,
    "h": 305.3
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#5B148D
secondary
#73C13C
accent
#F23684
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B148D

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

Preview Lab → · Contrast checker → · Palette generator →

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