#5F1B63#5F1B63

#5F1B63 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.134 H 325.5°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#5F1B63
RGBrgb(95, 27, 99)
HSLhsl(297, 57%, 25%)
HSVhsv(297, 73%, 39%)
CMYKcmyk(4%, 72.7%, 0%, 61.2%)
CIE-LABlab(24.06, 40.48, -27.38)
CIE-LCHlch(24.06, 48.87, 325.93°)
OKLaboklab(36.28% 0.1108 -0.076)
OKLCHoklch(36.28% 0.134 325.5)
XYZxyz(7.3632, 4.1181, 12.2090)
Luminance0.0412 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B63 #1F631B
analogous
#3B1B63 #5F1B63 #631B43
triadic
#5F1B63 #635F1B #1B635F
tetradic
#5F1B63 #633B1B #1F631B #1B4363
square
#5F1B63 #633B1B #1F631B #1B4363
split-complementary
#5F1B63 #43631B #1B633B
monochromatic
#170718 #310E33 #5F1B63 #8D2893 #BB35C3

Accessibility & contrast

On white

11.52
#5F1B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B63
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B63#FFFFFF#000000##FFFFFF
##5F1B631.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3465
Deuteranopia (green-blind)
#2A3C61
Tritanopia (blue-blind)
#61263D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1b63;
/* rgb */ color: rgb(95, 27, 99);
/* oklch */ color: oklch(36.3% 0.134 325.5);
Tailwind
colors: {
  custom: {
    50: '#8f5e90',
    500: '#5f1b63',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b63;
$custom-light: #8f5e90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b63",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 296.667,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.36282,
    "c": 0.13439,
    "h": 325.5
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#5F1B63
secondary
#469841
accent
#E04750
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F1B63

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

Preview Lab → · Contrast checker → · Palette generator →

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