#5B2575#5B2575

#5B2575 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.136 H 312.8°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5B2575
RGBrgb(91, 37, 117)
HSLhsl(281, 52%, 30%)
HSVhsv(281, 68%, 46%)
CMYKcmyk(22.2%, 68.4%, 0%, 54.1%)
CIE-LABlab(26.25, 38.70, -35.54)
CIE-LCHlch(26.25, 52.54, 317.44°)
OKLaboklab(38.11% 0.0927 -0.1001)
OKLCHoklch(38.11% 0.136 312.8)
XYZxyz(8.1863, 4.8319, 17.3276)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2575 #3F7525
analogous
#332575 #5B2575 #752567
triadic
#5B2575 #755B25 #25755B
tetradic
#5B2575 #753325 #3F7525 #256775
square
#5B2575 #753325 #3F7525 #256775
split-complementary
#5B2575 #677525 #257533
monochromatic
#130818 #371647 #5B2575 #7F34A3 #9F4EC7

Accessibility & contrast

On white

10.68
#5B2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2575
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2575#FFFFFF#000000##FFFFFF
##5B25751.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B77
Deuteranopia (green-blind)
#1F3F73
Tritanopia (blue-blind)
#583549
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b2575;
/* rgb */ color: rgb(91, 37, 117);
/* oklch */ color: oklch(38.1% 0.136 312.8);
Tailwind
colors: {
  custom: {
    50: '#8c649d',
    500: '#5b2575',
    950: '#000000',
  },
}
SCSS
$custom: #5b2575;
$custom-light: #8c649d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2575",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 280.5,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38106,
    "c": 0.13643,
    "h": 312.8
  },
  "luminance": 0.04832
}

Semantic roles & 50–950 ramp

primary
#5B2575
secondary
#6BA84E
accent
#DB4C7B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5B2575

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

Preview Lab → · Contrast checker → · Palette generator →

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