#5F1678#5F1678

#5F1678 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.160 H 315.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5F1678
RGBrgb(95, 22, 120)
HSLhsl(285, 69%, 28%)
HSVhsv(285, 82%, 47%)
CMYKcmyk(20.8%, 81.7%, 0%, 52.9%)
CIE-LABlab(24.84, 46.66, -39.69)
CIE-LCHlch(24.84, 61.26, 319.61°)
OKLaboklab(37.3% 0.1139 -0.112)
OKLCHoklch(37.3% 0.16 315.5)
XYZxyz(8.3958, 4.3631, 18.1656)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1678 #2F7816
analogous
#2E1678 #5F1678 #781660
triadic
#5F1678 #785F16 #16785F
tetradic
#5F1678 #782E16 #2F7816 #166078
square
#5F1678 #782E16 #2F7816 #166078
split-complementary
#5F1678 #607816 #16782E
monochromatic
#14051A #360D44 #5F1678 #881FAC #AE2FD9

Accessibility & contrast

On white

11.21
#5F1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F1678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1678
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1678#FFFFFF#000000##FFFFFF
##5F16781.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#123D76
Tritanopia (blue-blind)
#5D2D47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1678;
/* rgb */ color: rgb(95, 22, 120);
/* oklch */ color: oklch(37.3% 0.160 315.5);
Tailwind
colors: {
  custom: {
    50: '#905da0',
    500: '#5f1678',
    950: '#000000',
  },
}
SCSS
$custom: #5f1678;
$custom-light: #905da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1678",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 284.694,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37298,
    "c": 0.15975,
    "h": 315.5
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#5F1678
secondary
#59AD3C
accent
#EC3C69
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1678

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

Preview Lab → · Contrast checker → · Palette generator →

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