#5B1965#5B1965

#5B1965 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.6% C 0.137 H 322.1°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#5B1965
RGBrgb(91, 25, 101)
HSLhsl(292, 60%, 25%)
HSVhsv(292, 75%, 40%)
CMYKcmyk(9.9%, 75.2%, 0%, 60.4%)
CIE-LABlab(23.20, 40.72, -30.09)
CIE-LCHlch(23.20, 50.63, 323.54°)
OKLaboklab(35.57% 0.108 -0.0841)
OKLCHoklch(35.57% 0.137 322.1)
XYZxyz(7.0107, 3.8594, 12.6851)
Luminance0.0386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1965 #236519
analogous
#351965 #5B1965 #651949
triadic
#5B1965 #655B19 #19655B
tetradic
#5B1965 #653519 #236519 #194965
square
#5B1965 #653519 #236519 #194965
split-complementary
#5B1965 #496519 #196535
monochromatic
#160619 #2F0D34 #5B1965 #872596 #B331C7

Accessibility & contrast

On white

11.85
#5B1965 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B1965 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1965
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1965#FFFFFF#000000##FFFFFF
##5B19651.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003367
Deuteranopia (green-blind)
#233A63
Tritanopia (blue-blind)
#5C273D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1965;
/* rgb */ color: rgb(91, 25, 101);
/* oklch */ color: oklch(35.6% 0.137 322.1);
Tailwind
colors: {
  custom: {
    50: '#8c5d91',
    500: '#5b1965',
    950: '#000000',
  },
}
SCSS
$custom: #5b1965;
$custom-light: #8c5d91;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1965",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 101
  },
  "hsl": {
    "h": 292.105,
    "s": 60.317,
    "l": 24.706
  },
  "oklch": {
    "l": 0.35572,
    "c": 0.13683,
    "h": 322.1
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#5B1965
secondary
#4B9B3F
accent
#E34459
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5B1965

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

Preview Lab → · Contrast checker → · Palette generator →

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