#5F1784#5F1784

#5F1784 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.170 H 310.5°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5F1784
RGBrgb(95, 23, 132)
HSLhsl(280, 70%, 30%)
HSVhsv(280, 83%, 52%)
CMYKcmyk(28%, 82.6%, 0%, 48.2%)
CIE-LABlab(25.90, 48.90, -45.57)
CIE-LCHlch(25.90, 66.84, 317.02°)
OKLaboklab(38.34% 0.1104 -0.1293)
OKLCHoklch(38.34% 0.17 310.5)
XYZxyz(9.1898, 4.7118, 22.2507)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1784 #3C8417
analogous
#281784 #5F1784 #841772
triadic
#5F1784 #845F17 #17845F
tetradic
#5F1784 #842817 #3C8417 #177284
square
#5F1784 #842817 #3C8417 #177284
split-complementary
#5F1784 #728417 #178428
monochromatic
#14051C #390E50 #5F1784 #8520B8 #A539DC

Accessibility & contrast

On white

10.81
#5F1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1784
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1784#FFFFFF#000000##FFFFFF
##5F17841.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#5A334E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1784;
/* rgb */ color: rgb(95, 23, 132);
/* oklch */ color: oklch(38.3% 0.170 310.5);
Tailwind
colors: {
  custom: {
    50: '#915ea9',
    500: '#5f1784',
    950: '#000000',
  },
}
SCSS
$custom: #5f1784;
$custom-light: #915ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1784",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 279.633,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38338,
    "c": 0.17003,
    "h": 310.5
  },
  "luminance": 0.04712
}

Semantic roles & 50–950 ramp

primary
#5F1784
secondary
#68B83F
accent
#ED3B77
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1784

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

Preview Lab → · Contrast checker → · Palette generator →

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