#5F1B68#5F1B68

#5F1B68 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.139 H 322.8°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5F1B68
RGBrgb(95, 27, 104)
HSLhsl(293, 59%, 26%)
HSVhsv(293, 74%, 41%)
CMYKcmyk(8.7%, 74%, 0%, 59.2%)
CIE-LABlab(24.38, 41.47, -30.13)
CIE-LCHlch(24.38, 51.26, 324.00°)
OKLaboklab(36.61% 0.1107 -0.0841)
OKLCHoklch(36.61% 0.139 322.8)
XYZxyz(7.6097, 4.2167, 13.5071)
Luminance0.0422 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B68 #24681B
analogous
#381B68 #5F1B68 #681B4A
triadic
#5F1B68 #685F1B #1B685F
tetradic
#5F1B68 #68381B #24681B #1B4A68
square
#5F1B68 #68381B #24681B #1B4A68
split-complementary
#5F1B68 #4A681B #1B6838
monochromatic
#160618 #330E37 #5F1B68 #8B2899 #B834C9

Accessibility & contrast

On white

11.39
#5F1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1B68
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B68#FFFFFF#000000##FFFFFF
##5F1B681.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02356A
Deuteranopia (green-blind)
#273D66
Tritanopia (blue-blind)
#60283F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1b68;
/* rgb */ color: rgb(95, 27, 104);
/* oklch */ color: oklch(36.6% 0.139 322.8);
Tailwind
colors: {
  custom: {
    50: '#8f5e93',
    500: '#5f1b68',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b68;
$custom-light: #8f5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b68",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 292.987,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36612,
    "c": 0.13903,
    "h": 322.8
  },
  "luminance": 0.04216
}

Semantic roles & 50–950 ramp

primary
#5F1B68
secondary
#4C9D42
accent
#E24658
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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