#5B1462#5B1462

#5B1462 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.140 H 324.0°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#5B1462
RGBrgb(91, 20, 98)
HSLhsl(295, 66%, 23%)
HSVhsv(295, 80%, 38%)
CMYKcmyk(7.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(22.33, 42.05, -29.52)
CIE-LCHlch(22.33, 51.38, 324.93°)
OKLaboklab(34.88% 0.1134 -0.0824)
OKLCHoklch(34.88% 0.14 324)
XYZxyz(6.7690, 3.6067, 11.8925)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1462 #1B6214
analogous
#341462 #5B1462 #621442
triadic
#5B1462 #625B14 #14625B
tetradic
#5B1462 #623414 #1B6214 #144262
square
#5B1462 #623414 #1B6214 #144262
split-complementary
#5B1462 #426214 #146234
monochromatic
#180519 #2C0A2F #5B1462 #8A1E95 #B929C8

Accessibility & contrast

On white

12.20
#5B1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1462
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1462#FFFFFF#000000##FFFFFF
##5B14621.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#233860
Tritanopia (blue-blind)
#5D223A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1462;
/* rgb */ color: rgb(91, 20, 98);
/* oklch */ color: oklch(34.9% 0.140 324.0);
Tailwind
colors: {
  custom: {
    50: '#8c5b8f',
    500: '#5b1462',
    950: '#000000',
  },
}
SCSS
$custom: #5b1462;
$custom-light: #8c5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1462",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 294.615,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34884,
    "c": 0.14013,
    "h": 324
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#5B1462
secondary
#419938
accent
#E93F4E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1462

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

Preview Lab → · Contrast checker → · Palette generator →

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