#5F1964#5F1964

#5F1964 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.138 H 325.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5F1964
RGBrgb(95, 25, 100)
HSLhsl(296, 60%, 25%)
HSVhsv(296, 75%, 39%)
CMYKcmyk(5%, 75%, 0%, 60.8%)
CIE-LABlab(23.83, 41.49, -28.39)
CIE-LCHlch(23.83, 50.28, 325.62°)
OKLaboklab(36.14% 0.1131 -0.079)
OKLCHoklch(36.14% 0.138 325.1)
XYZxyz(7.3670, 4.0487, 12.4476)
Luminance0.0405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1964 #1E6419
analogous
#3A1964 #5F1964 #641944
triadic
#5F1964 #645F19 #19645F
tetradic
#5F1964 #643A19 #1E6419 #194464
square
#5F1964 #643A19 #1E6419 #194464
split-complementary
#5F1964 #446419 #19643A
monochromatic
#170618 #300D33 #5F1964 #8E2595 #BC31C6

Accessibility & contrast

On white

11.60
#5F1964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5F1964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1964
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1964#FFFFFF#000000##FFFFFF
##5F19641.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053366
Deuteranopia (green-blind)
#283C62
Tritanopia (blue-blind)
#61253D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1964;
/* rgb */ color: rgb(95, 25, 100);
/* oklch */ color: oklch(36.1% 0.138 325.1);
Tailwind
colors: {
  custom: {
    50: '#8f5d90',
    500: '#5f1964',
    950: '#000000',
  },
}
SCSS
$custom: #5f1964;
$custom-light: #8f5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1964",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 296,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.3614,
    "c": 0.13792,
    "h": 325.1
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#5F1964
secondary
#459A3F
accent
#E3454F
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F1964

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

Preview Lab → · Contrast checker → · Palette generator →

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