#5F1860#5F1860

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

Color values

HEX#5F1860
RGBrgb(95, 24, 96)
HSLhsl(299, 60%, 24%)
HSVhsv(299, 75%, 38%)
CMYKcmyk(1%, 75%, 0%, 62.4%)
CIE-LABlab(23.44, 41.13, -26.39)
CIE-LCHlch(23.44, 48.87, 327.32°)
OKLaboklab(35.78% 0.1142 -0.0731)
OKLCHoklch(35.78% 0.136 327.4)
XYZxyz(7.1572, 3.9312, 11.4459)
Luminance0.0393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1860 #196018
analogous
#3B1860 #5F1860 #60183D
triadic
#5F1860 #605F18 #18605F
tetradic
#5F1860 #603B18 #196018 #183D60
square
#5F1860 #603B18 #196018 #183D60
split-complementary
#5F1860 #3D6018 #18603B
monochromatic
#180618 #2F0C2F #5F1860 #8F2491 #C030C2

Accessibility & contrast

On white

11.76
#5F1860 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1860
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1860#FFFFFF#000000##FFFFFF
##5F18601.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3262
Deuteranopia (green-blind)
#2A3B5E
Tritanopia (blue-blind)
#62233A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1860;
/* rgb */ color: rgb(95, 24, 96);
/* oklch */ color: oklch(35.8% 0.136 327.4);
Tailwind
colors: {
  custom: {
    50: '#8f5d8d',
    500: '#5f1860',
    950: '#000000',
  },
}
SCSS
$custom: #5f1860;
$custom-light: #8f5d8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1860",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 96
  },
  "hsl": {
    "h": 299.167,
    "s": 60,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3578,
    "c": 0.13561,
    "h": 327.4
  },
  "luminance": 0.03931
}

Semantic roles & 50–950 ramp

primary
#5F1860
secondary
#3F963D
accent
#E34547
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1860

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

Preview Lab → · Contrast checker → · Palette generator →

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