#5D2168#5D2168

#5D2168 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.0% C 0.130 H 321.1°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#5D2168
RGBrgb(93, 33, 104)
HSLhsl(291, 52%, 27%)
HSVhsv(291, 68%, 41%)
CMYKcmyk(10.6%, 68.3%, 0%, 59.2%)
CIE-LABlab(25.00, 38.28, -29.16)
CIE-LCHlch(25.00, 48.12, 322.70°)
OKLaboklab(36.99% 0.1009 -0.0813)
OKLCHoklch(36.99% 0.13 321.1)
XYZxyz(7.5565, 4.4147, 13.5481)
Luminance0.0441 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2168 #2C6821
analogous
#3A2168 #5D2168 #682150
triadic
#5D2168 #685D21 #21685D
tetradic
#5D2168 #683A21 #2C6821 #215068
square
#5D2168 #683A21 #2C6821 #215068
split-complementary
#5D2168 #506821 #21683A
monochromatic
#150717 #33123A #5D2168 #873096 #AF41C3

Accessibility & contrast

On white

11.15
#5D2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5D2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2168
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2168#FFFFFF#000000##FFFFFF
##5D21681.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E376A
Deuteranopia (green-blind)
#293E66
Tritanopia (blue-blind)
#5E2D41
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d2168;
/* rgb */ color: rgb(93, 33, 104);
/* oklch */ color: oklch(37.0% 0.130 321.1);
Tailwind
colors: {
  custom: {
    50: '#8d6193',
    500: '#5d2168',
    950: '#000000',
  },
}
SCSS
$custom: #5d2168;
$custom-light: #8d6193;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2168",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 290.704,
    "s": 51.825,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36992,
    "c": 0.1296,
    "h": 321.1
  },
  "luminance": 0.04414
}

Semantic roles & 50–950 ramp

primary
#5D2168
secondary
#569C49
accent
#DB4D63
background
#F8F5F9
surface
#F0EAF1
border
#CBC6CB
text
#0C050D
muted
#7D797E

Preview Lab

Preview with #5D2168

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

Preview Lab → · Contrast checker → · Palette generator →

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