#5F1583#5F1583

#5F1583 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.1% C 0.171 H 311.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5F1583
RGBrgb(95, 21, 131)
HSLhsl(280, 72%, 30%)
HSVhsv(280, 84%, 51%)
CMYKcmyk(27.5%, 84%, 0%, 48.6%)
CIE-LABlab(25.59, 49.34, -45.44)
CIE-LCHlch(25.59, 67.08, 317.36°)
OKLaboklab(38.1% 0.1123 -0.1289)
OKLCHoklch(38.1% 0.171 311.1)
XYZxyz(9.0834, 4.6082, 21.8793)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1583 #398315
analogous
#281583 #5F1583 #831570
triadic
#5F1583 #835F15 #15835F
tetradic
#5F1583 #832815 #398315 #157083
square
#5F1583 #832815 #398315 #157083
split-complementary
#5F1583 #708315 #158328
monochromatic
#13041A #390D4E #5F1583 #851DB8 #A734DE

Accessibility & contrast

On white

10.93
#5F1583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F1583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1583
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1583#FFFFFF#000000##FFFFFF
##5F15831.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#5A324D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1583;
/* rgb */ color: rgb(95, 21, 131);
/* oklch */ color: oklch(38.1% 0.171 311.1);
Tailwind
colors: {
  custom: {
    50: '#915da8',
    500: '#5f1583',
    950: '#000000',
  },
}
SCSS
$custom: #5f1583;
$custom-light: #915da8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1583",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 280.364,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38096,
    "c": 0.17094,
    "h": 311.1
  },
  "luminance": 0.04608
}

Semantic roles & 50–950 ramp

primary
#5F1583
secondary
#65B83C
accent
#EF3974
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1583

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

Preview Lab → · Contrast checker → · Palette generator →

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