#5F1980#5F1980

#5F1980 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.2% C 0.164 H 311.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5F1980
RGBrgb(95, 25, 128)
HSLhsl(281, 67%, 30%)
HSVhsv(281, 80%, 50%)
CMYKcmyk(25.8%, 80.5%, 0%, 49.8%)
CIE-LABlab(25.82, 47.31, -43.17)
CIE-LCHlch(25.82, 64.04, 317.62°)
OKLaboklab(38.19% 0.1097 -0.1223)
OKLCHoklch(38.19% 0.164 311.9)
XYZxyz(8.9625, 4.6869, 20.8504)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1980 #3A8019
analogous
#2C1980 #5F1980 #80196D
triadic
#5F1980 #805F19 #19805F
tetradic
#5F1980 #802C19 #3A8019 #196D80
square
#5F1980 #802C19 #3A8019 #196D80
split-complementary
#5F1980 #6D8019 #19802C
monochromatic
#13051A #390F4D #5F1980 #8523B3 #A63BD9

Accessibility & contrast

On white

10.84
#5F1980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1980
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1980#FFFFFF#000000##FFFFFF
##5F19801.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#043E7E
Tritanopia (blue-blind)
#5B324C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1980;
/* rgb */ color: rgb(95, 25, 128);
/* oklch */ color: oklch(38.2% 0.164 311.9);
Tailwind
colors: {
  custom: {
    50: '#915fa6',
    500: '#5f1980',
    950: '#000000',
  },
}
SCSS
$custom: #5f1980;
$custom-light: #915fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1980",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 280.777,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.38186,
    "c": 0.16423,
    "h": 311.9
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#5F1980
secondary
#66B441
accent
#EA3E75
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1980

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

Preview Lab → · Contrast checker → · Palette generator →

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