#5F1555#5F1555

#5F1555 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.130 H 334.1°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#5F1555
RGBrgb(95, 21, 85)
HSLhsl(308, 64%, 23%)
HSVhsv(308, 78%, 37%)
CMYKcmyk(0%, 77.9%, 10.5%, 62.7%)
CIE-LABlab(22.39, 40.31, -20.74)
CIE-LCHlch(22.39, 45.33, 332.77°)
OKLaboklab(34.82% 0.117 -0.0568)
OKLCHoklch(34.82% 0.13 334.1)
XYZxyz(6.6272, 3.6257, 8.9434)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1555 #155F1F
analogous
#44155F #5F1555 #5F1530
triadic
#5F1555 #555F15 #15555F
tetradic
#5F1555 #5F4415 #155F1F #15305F
square
#5F1555 #5F4415 #155F1F #15305F
split-complementary
#5F1555 #305F15 #155F44
monochromatic
#190616 #2D0A28 #5F1555 #912082 #C32BAF

Accessibility & contrast

On white

12.17
#5F1555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5F1555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1555
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1555#FFFFFF#000000##FFFFFF
##5F15551.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132F57
Deuteranopia (green-blind)
#2E3953
Tritanopia (blue-blind)
#641C33
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1555;
/* rgb */ color: rgb(95, 21, 85);
/* oklch */ color: oklch(34.8% 0.130 334.1);
Tailwind
colors: {
  custom: {
    50: '#8f5b85',
    500: '#5f1555',
    950: '#000000',
  },
}
SCSS
$custom: #5f1555;
$custom-light: #8f5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1555",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 308.108,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34817,
    "c": 0.13006,
    "h": 334.1
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#5F1555
secondary
#3A9646
accent
#E75741
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1555

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

Preview Lab → · Contrast checker → · Palette generator →

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