#5B148E#5B148E

#5B148E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.181 H 305.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5B148E
RGBrgb(91, 20, 142)
HSLhsl(275, 75%, 32%)
HSVhsv(275, 86%, 56%)
CMYKcmyk(35.9%, 85.9%, 0%, 44.3%)
CIE-LABlab(25.80, 51.45, -52.00)
CIE-LCHlch(25.80, 73.15, 314.69°)
OKLaboklab(38.4% 0.1039 -0.1483)
OKLCHoklch(38.4% 0.181 305)
XYZxyz(9.4459, 4.6775, 25.9912)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B148E #478E14
analogous
#1E148E #5B148E #8E1484
triadic
#5B148E #8E5B14 #148E5B
tetradic
#5B148E #8E1E14 #478E14 #14848E
square
#5B148E #8E1E14 #478E14 #14848E
split-complementary
#5B148E #848E14 #148E1E
monochromatic
#160523 #390C58 #5B148E #7D1CC4 #9C39E3

Accessibility & contrast

On white

10.85
#5B148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B148E
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B148E#FFFFFF#000000##FFFFFF
##5B148E1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b148e;
/* rgb */ color: rgb(91, 20, 142);
/* oklch */ color: oklch(38.4% 0.181 305.0);
Tailwind
colors: {
  custom: {
    50: '#8f5db0',
    500: '#5b148e',
    950: '#000000',
  },
}
SCSS
$custom: #5b148e;
$custom-light: #8f5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b148e",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 274.918,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38404,
    "c": 0.18109,
    "h": 305
  },
  "luminance": 0.04677
}

Semantic roles & 50–950 ramp

primary
#5B148E
secondary
#74C23C
accent
#F23684
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B148E

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

Preview Lab → · Contrast checker → · Palette generator →

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