#5B2175#5B2175

#5B2175 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.142 H 313.4°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#5B2175
RGBrgb(91, 33, 117)
HSLhsl(281, 56%, 29%)
HSVhsv(281, 72%, 46%)
CMYKcmyk(22.2%, 71.8%, 0%, 54.1%)
CIE-LABlab(25.55, 40.64, -36.66)
CIE-LCHlch(25.55, 54.73, 317.95°)
OKLaboklab(37.61% 0.0976 -0.1033)
OKLCHoklch(37.61% 0.142 313.4)
XYZxyz(8.0686, 4.5965, 17.2883)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2175 #3B7521
analogous
#312175 #5B2175 #752165
triadic
#5B2175 #755B21 #21755B
tetradic
#5B2175 #753121 #3B7521 #216575
square
#5B2175 #753121 #3B7521 #216575
split-complementary
#5B2175 #657521 #217531
monochromatic
#130718 #361445 #5B2175 #802EA5 #A246CB

Accessibility & contrast

On white

10.94
#5B2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2175
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2175#FFFFFF#000000##FFFFFF
##5B21751.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003977
Deuteranopia (green-blind)
#1B3E73
Tritanopia (blue-blind)
#583248
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b2175;
/* rgb */ color: rgb(91, 33, 117);
/* oklch */ color: oklch(37.6% 0.142 313.4);
Tailwind
colors: {
  custom: {
    50: '#8c629d',
    500: '#5b2175',
    950: '#000000',
  },
}
SCSS
$custom: #5b2175;
$custom-light: #8c629d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2175",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 281.429,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37606,
    "c": 0.14213,
    "h": 313.4
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#5B2175
secondary
#67A84A
accent
#DF4977
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B2175

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

Preview Lab → · Contrast checker → · Palette generator →

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