#5F1480#5F1480

#5F1480 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.8% C 0.169 H 312.3°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#5F1480
RGBrgb(95, 20, 128)
HSLhsl(282, 73%, 29%)
HSVhsv(282, 84%, 50%)
CMYKcmyk(25.8%, 84.4%, 0%, 49.8%)
CIE-LABlab(25.24, 49.01, -44.12)
CIE-LCHlch(25.24, 65.95, 318.01°)
OKLaboklab(37.77% 0.1138 -0.125)
OKLCHoklch(37.77% 0.169 312.3)
XYZxyz(8.8650, 4.4920, 20.8179)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1480 #358014
analogous
#291480 #5F1480 #80146B
triadic
#5F1480 #805F14 #14805F
tetradic
#5F1480 #802914 #358014 #146B80
square
#5F1480 #802914 #358014 #146B80
split-complementary
#5F1480 #6B8014 #148029
monochromatic
#14041A #380C4B #5F1480 #861CB5 #A930DF

Accessibility & contrast

On white

11.06
#5F1480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1480
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1480#FFFFFF#000000##FFFFFF
##5F14801.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#5B304B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1480;
/* rgb */ color: rgb(95, 20, 128);
/* oklch */ color: oklch(37.8% 0.169 312.3);
Tailwind
colors: {
  custom: {
    50: '#915da6',
    500: '#5f1480',
    950: '#000000',
  },
}
SCSS
$custom: #5f1480;
$custom-light: #915da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1480",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 281.667,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.16904,
    "h": 312.3
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#5F1480
secondary
#60B53B
accent
#F03870
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1480

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

Preview Lab → · Contrast checker → · Palette generator →

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