#5F1978#5F1978

#5F1978 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.157 H 315.2°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5F1978
RGBrgb(95, 25, 120)
HSLhsl(284, 66%, 28%)
HSVhsv(284, 79%, 47%)
CMYKcmyk(20.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(25.21, 45.57, -39.09)
CIE-LCHlch(25.21, 60.04, 319.38°)
OKLaboklab(37.56% 0.1112 -0.1103)
OKLCHoklch(37.56% 0.157 315.2)
XYZxyz(8.4566, 4.4845, 18.1858)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1978 #327819
analogous
#301978 #5F1978 #781961
triadic
#5F1978 #785F19 #19785F
tetradic
#5F1978 #783019 #327819 #196178
square
#5F1978 #783019 #327819 #196178
split-complementary
#5F1978 #617819 #197830
monochromatic
#140519 #370E45 #5F1978 #8724AB #AB36D5

Accessibility & contrast

On white

11.07
#5F1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1978
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1978#FFFFFF#000000##FFFFFF
##5F19781.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387B
Deuteranopia (green-blind)
#153E76
Tritanopia (blue-blind)
#5D2E48
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1978;
/* rgb */ color: rgb(95, 25, 120);
/* oklch */ color: oklch(37.6% 0.157 315.2);
Tailwind
colors: {
  custom: {
    50: '#905ea0',
    500: '#5f1978',
    950: '#000000',
  },
}
SCSS
$custom: #5f1978;
$custom-light: #905ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1978",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 284.211,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37563,
    "c": 0.15658,
    "h": 315.2
  },
  "luminance": 0.04484
}

Semantic roles & 50–950 ramp

primary
#5F1978
secondary
#5DAD40
accent
#E83F6C
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1978

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

Preview Lab → · Contrast checker → · Palette generator →

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