#5B1865#5B1865

#5B1865 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.138 H 322.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#5B1865
RGBrgb(91, 24, 101)
HSLhsl(292, 62%, 25%)
HSVhsv(292, 76%, 40%)
CMYKcmyk(9.9%, 76.2%, 0%, 60.4%)
CIE-LABlab(23.06, 41.13, -30.32)
CIE-LCHlch(23.06, 51.09, 323.60°)
OKLaboklab(35.47% 0.1091 -0.0847)
OKLCHoklch(35.47% 0.138 322.2)
XYZxyz(6.9897, 3.8174, 12.6781)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1865 #226518
analogous
#351865 #5B1865 #651849
triadic
#5B1865 #655B18 #18655B
tetradic
#5B1865 #653518 #226518 #184965
square
#5B1865 #653518 #226518 #184965
split-complementary
#5B1865 #496518 #186535
monochromatic
#160619 #2E0C34 #5B1865 #882496 #B430C8

Accessibility & contrast

On white

11.91
#5B1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B1865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1865
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1865#FFFFFF#000000##FFFFFF
##5B18651.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1865;
/* rgb */ color: rgb(91, 24, 101);
/* oklch */ color: oklch(35.5% 0.138 322.2);
Tailwind
colors: {
  custom: {
    50: '#8c5c91',
    500: '#5b1865',
    950: '#000000',
  },
}
SCSS
$custom: #5b1865;
$custom-light: #8c5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1865",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 292.208,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.3547,
    "c": 0.13809,
    "h": 322.2
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#5B1865
secondary
#4A9B3E
accent
#E54358
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5B1865

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

Preview Lab → · Contrast checker → · Palette generator →

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