#5F1568#5F1568

#5F1568 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.146 H 323.1°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5F1568
RGBrgb(95, 21, 104)
HSLhsl(293, 66%, 25%)
HSVhsv(293, 80%, 41%)
CMYKcmyk(8.7%, 79.8%, 0%, 59.2%)
CIE-LABlab(23.57, 43.77, -31.42)
CIE-LCHlch(23.57, 53.88, 324.32°)
OKLaboklab(36.04% 0.117 -0.0878)
OKLCHoklch(36.04% 0.146 323.1)
XYZxyz(7.4859, 3.9692, 13.4658)
Luminance0.0397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1568 #1E6815
analogous
#361568 #5F1568 #681548
triadic
#5F1568 #685F15 #15685F
tetradic
#5F1568 #683615 #1E6815 #154868
square
#5F1568 #683615 #1E6815 #154868
split-complementary
#5F1568 #486815 #156836
monochromatic
#170519 #300B35 #5F1568 #8E1F9B #BC2ACE

Accessibility & contrast

On white

11.71
#5F1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1568
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1568#FFFFFF#000000##FFFFFF
##5F15681.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#233B66
Tritanopia (blue-blind)
#61253E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1568;
/* rgb */ color: rgb(95, 21, 104);
/* oklch */ color: oklch(36.0% 0.146 323.1);
Tailwind
colors: {
  custom: {
    50: '#905c93',
    500: '#5f1568',
    950: '#000000',
  },
}
SCSS
$custom: #5f1568;
$custom-light: #905c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1568",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 293.494,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.36037,
    "c": 0.14625,
    "h": 323.1
  },
  "luminance": 0.03969
}

Semantic roles & 50–950 ramp

primary
#5F1568
secondary
#459F3A
accent
#E93E51
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1568

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

Preview Lab → · Contrast checker → · Palette generator →

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