#5F1565#5F1565

#5F1565 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.144 H 324.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#5F1565
RGBrgb(95, 21, 101)
HSLhsl(296, 66%, 24%)
HSVhsv(296, 79%, 40%)
CMYKcmyk(5.9%, 79.2%, 0%, 60.4%)
CIE-LABlab(23.37, 43.19, -29.78)
CIE-LCHlch(23.37, 52.47, 325.41°)
OKLaboklab(35.83% 0.1172 -0.083)
OKLCHoklch(35.83% 0.144 324.7)
XYZxyz(7.3363, 3.9093, 12.6776)
Luminance0.0391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1565 #1B6515
analogous
#371565 #5F1565 #651543
triadic
#5F1565 #655F15 #15655F
tetradic
#5F1565 #653715 #1B6515 #154365
square
#5F1565 #653715 #1B6515 #154365
split-complementary
#5F1565 #436515 #156537
monochromatic
#180519 #2F0A32 #5F1565 #8F2098 #BE2ACA

Accessibility & contrast

On white

11.79
#5F1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F1565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1565
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1565#FFFFFF#000000##FFFFFF
##5F15651.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#253B63
Tritanopia (blue-blind)
#61233C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1565;
/* rgb */ color: rgb(95, 21, 101);
/* oklch */ color: oklch(35.8% 0.144 324.7);
Tailwind
colors: {
  custom: {
    50: '#8f5c91',
    500: '#5f1565',
    950: '#000000',
  },
}
SCSS
$custom: #5f1565;
$custom-light: #8f5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1565",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 295.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35831,
    "c": 0.14361,
    "h": 324.7
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#5F1565
secondary
#419C3A
accent
#E93F4C
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040D
muted
#7E797D

Preview Lab

Preview with #5F1565

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

Preview Lab → · Contrast checker → · Palette generator →

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