#5F1D63#5F1D63

#5F1D63 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.5% C 0.132 H 325.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5F1D63
RGBrgb(95, 29, 99)
HSLhsl(297, 55%, 25%)
HSVhsv(297, 71%, 39%)
CMYKcmyk(4%, 70.7%, 0%, 61.2%)
CIE-LABlab(24.36, 39.62, -26.89)
CIE-LCHlch(24.36, 47.89, 325.84°)
OKLaboklab(36.5% 0.1084 -0.0746)
OKLCHoklch(36.5% 0.132 325.5)
XYZxyz(7.4106, 4.2129, 12.2248)
Luminance0.0421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D63 #21631D
analogous
#3C1D63 #5F1D63 #631D44
triadic
#5F1D63 #635F1D #1D635F
tetradic
#5F1D63 #633C1D #21631D #1D4463
square
#5F1D63 #633C1D #21631D #1D4463
split-complementary
#5F1D63 #44631D #1D633C
monochromatic
#170718 #320F34 #5F1D63 #8C2B92 #BA39C2

Accessibility & contrast

On white

11.40
#5F1D63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F1D63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D63
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D63#FFFFFF#000000##FFFFFF
##5F1D631.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3565
Deuteranopia (green-blind)
#2B3D61
Tritanopia (blue-blind)
#61283D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1d63;
/* rgb */ color: rgb(95, 29, 99);
/* oklch */ color: oklch(36.5% 0.132 325.5);
Tailwind
colors: {
  custom: {
    50: '#8f5f90',
    500: '#5f1d63',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d63;
$custom-light: #8f5f90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d63",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 99
  },
  "hsl": {
    "h": 296.571,
    "s": 54.688,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36502,
    "c": 0.13163,
    "h": 325.5
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#5F1D63
secondary
#499844
accent
#DE4A52
background
#F9F5F8
surface
#F1EAF0
border
#CBC6CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F1D63

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

Preview Lab → · Contrast checker → · Palette generator →

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