#5F1764#5F1764

#5F1764 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.9% C 0.140 H 325.2°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5F1764
RGBrgb(95, 23, 100)
HSLhsl(296, 63%, 24%)
HSVhsv(296, 77%, 39%)
CMYKcmyk(5%, 77%, 0%, 60.8%)
CIE-LABlab(23.56, 42.27, -28.82)
CIE-LCHlch(23.56, 51.16, 325.71°)
OKLaboklab(35.95% 0.1152 -0.0802)
OKLCHoklch(35.95% 0.14 325.2)
XYZxyz(7.3258, 3.9663, 12.4338)
Luminance0.0397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1764 #1C6417
analogous
#391764 #5F1764 #641743
triadic
#5F1764 #645F17 #17645F
tetradic
#5F1764 #643917 #1C6417 #174364
square
#5F1764 #643917 #1C6417 #174364
split-complementary
#5F1764 #436417 #176439
monochromatic
#180619 #300C32 #5F1764 #8E2296 #BE2EC8

Accessibility & contrast

On white

11.71
#5F1764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F1764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1764
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1764#FFFFFF#000000##FFFFFF
##5F17641.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013266
Deuteranopia (green-blind)
#273B62
Tritanopia (blue-blind)
#61243C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1764;
/* rgb */ color: rgb(95, 23, 100);
/* oklch */ color: oklch(35.9% 0.140 325.2);
Tailwind
colors: {
  custom: {
    50: '#8f5d90',
    500: '#5f1764',
    950: '#000000',
  },
}
SCSS
$custom: #5f1764;
$custom-light: #8f5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1764",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 296.104,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35945,
    "c": 0.1404,
    "h": 325.2
  },
  "luminance": 0.03966
}

Semantic roles & 50–950 ramp

primary
#5F1764
secondary
#429A3C
accent
#E6424D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1764

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

Preview Lab → · Contrast checker → · Palette generator →

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