#5B148B#5B148B

#5B148B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.178 H 306.0°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5B148B
RGBrgb(91, 20, 139)
HSLhsl(276, 75%, 31%)
HSVhsv(276, 86%, 55%)
CMYKcmyk(34.5%, 85.6%, 0%, 45.5%)
CIE-LABlab(25.53, 50.77, -50.57)
CIE-LCHlch(25.53, 71.66, 315.11°)
OKLaboklab(38.14% 0.1049 -0.1441)
OKLCHoklch(38.14% 0.178 306)
XYZxyz(9.2237, 4.5886, 24.8209)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B148B #448B14
analogous
#1F148B #5B148B #8B147F
triadic
#5B148B #8B5B14 #148B5B
tetradic
#5B148B #8B1F14 #448B14 #147F8B
square
#5B148B #8B1F14 #448B14 #147F8B
split-complementary
#5B148B #7F8B14 #148B1F
monochromatic
#150520 #380C55 #5B148B #7E1CC1 #9D37E2

Accessibility & contrast

On white

10.95
#5B148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B148B
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B148B#FFFFFF#000000##FFFFFF
##5B148B1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#523652
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b148b;
/* rgb */ color: rgb(91, 20, 139);
/* oklch */ color: oklch(38.1% 0.178 306.0);
Tailwind
colors: {
  custom: {
    50: '#8f5dae',
    500: '#5b148b',
    950: '#000000',
  },
}
SCSS
$custom: #5b148b;
$custom-light: #8f5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b148b",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 275.798,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38137,
    "c": 0.17824,
    "h": 306
  },
  "luminance": 0.04589
}

Semantic roles & 50–950 ramp

primary
#5B148B
secondary
#71BF3C
accent
#F13682
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B148B

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

Preview Lab → · Contrast checker → · Palette generator →

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