#5F1760#5F1760

#5F1760 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.137 H 327.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#5F1760
RGBrgb(95, 23, 96)
HSLhsl(299, 61%, 23%)
HSVhsv(299, 76%, 38%)
CMYKcmyk(1%, 76%, 0%, 62.4%)
CIE-LABlab(23.31, 41.52, -26.60)
CIE-LCHlch(23.31, 49.31, 327.35°)
OKLaboklab(35.68% 0.1153 -0.0737)
OKLCHoklch(35.68% 0.137 327.4)
XYZxyz(7.1369, 3.8907, 11.4391)
Luminance0.0389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1760 #186017
analogous
#3A1760 #5F1760 #60173C
triadic
#5F1760 #605F17 #17605F
tetradic
#5F1760 #603A17 #186017 #173C60
square
#5F1760 #603A17 #186017 #173C60
split-complementary
#5F1760 #3C6017 #17603A
monochromatic
#180619 #2E0B2F #5F1760 #902391 #C12FC3

Accessibility & contrast

On white

11.81
#5F1760 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F1760 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1760
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1760#FFFFFF#000000##FFFFFF
##5F17601.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083262
Deuteranopia (green-blind)
#2A3B5E
Tritanopia (blue-blind)
#62223A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1760;
/* rgb */ color: rgb(95, 23, 96);
/* oklch */ color: oklch(35.7% 0.137 327.4);
Tailwind
colors: {
  custom: {
    50: '#8f5c8d',
    500: '#5f1760',
    950: '#000000',
  },
}
SCSS
$custom: #5f1760;
$custom-light: #8f5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1760",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 96
  },
  "hsl": {
    "h": 299.178,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35683,
    "c": 0.13686,
    "h": 327.4
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#5F1760
secondary
#3D973C
accent
#E44346
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1760

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

Preview Lab → · Contrast checker → · Palette generator →

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