#5F1960#5F1960

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

Color values

HEX#5F1960
RGBrgb(95, 25, 96)
HSLhsl(299, 59%, 24%)
HSVhsv(299, 74%, 38%)
CMYKcmyk(1%, 74%, 0%, 62.4%)
CIE-LABlab(23.58, 40.73, -26.16)
CIE-LCHlch(23.58, 48.41, 327.29°)
OKLaboklab(35.88% 0.1131 -0.0725)
OKLCHoklch(35.88% 0.134 327.3)
XYZxyz(7.1782, 3.9732, 11.4529)
Luminance0.0397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1960 #1A6019
analogous
#3B1960 #5F1960 #60193D
triadic
#5F1960 #605F19 #19605F
tetradic
#5F1960 #603B19 #1A6019 #193D60
square
#5F1960 #603B19 #1A6019 #193D60
split-complementary
#5F1960 #3D6019 #19603B
monochromatic
#180618 #2F0C2F #5F1960 #8F2691 #BF32C1

Accessibility & contrast

On white

11.70
#5F1960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1960
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1960#FFFFFF#000000##FFFFFF
##5F19601.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3262
Deuteranopia (green-blind)
#2B3B5E
Tritanopia (blue-blind)
#62243A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1960;
/* rgb */ color: rgb(95, 25, 96);
/* oklch */ color: oklch(35.9% 0.134 327.3);
Tailwind
colors: {
  custom: {
    50: '#8f5d8d',
    500: '#5f1960',
    950: '#000000',
  },
}
SCSS
$custom: #5f1960;
$custom-light: #8f5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1960",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 299.155,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.35881,
    "c": 0.13432,
    "h": 327.3
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#5F1960
secondary
#40963F
accent
#E24648
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F1960

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

Preview Lab → · Contrast checker → · Palette generator →

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