#5F1DA1#5F1DA1

#5F1DA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.193 H 300.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5F1DA1
RGBrgb(95, 29, 161)
HSLhsl(270, 69%, 37%)
HSVhsv(270, 82%, 63%)
CMYKcmyk(41%, 82%, 0%, 36.9%)
CIE-LABlab(29.12, 53.46, -58.21)
CIE-LCHlch(29.12, 79.03, 312.57°)
OKLaboklab(41.35% 0.0974 -0.1665)
OKLCHoklch(41.35% 0.193 300.3)
XYZxyz(11.5901, 5.8847, 34.2365)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1DA1 #5FA11D
analogous
#1D1DA1 #5F1DA1 #A11DA1
triadic
#5F1DA1 #A15F1D #1DA15F
tetradic
#5F1DA1 #A11D1D #5FA11D #1DA1A1
square
#5F1DA1 #A11D1D #5FA11D #1DA1A1
split-complementary
#5F1DA1 #A1A11D #1DA11D
monochromatic
#220A39 #40146D #5F1DA1 #7E26D5 #9C58E1

Accessibility & contrast

On white

9.65
#5F1DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F1DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1DA1
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1DA1#FFFFFF#000000##FFFFFF
##5F1DA11.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#4F4260
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f1da1;
/* rgb */ color: rgb(95, 29, 161);
/* oklch */ color: oklch(41.4% 0.193 300.3);
Tailwind
colors: {
  custom: {
    50: '#9362be',
    500: '#5f1da1',
    950: '#000000',
  },
}
SCSS
$custom: #5f1da1;
$custom-light: #9362be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1da1",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 270,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41352,
    "c": 0.19288,
    "h": 300.3
  },
  "luminance": 0.05885
}

Semantic roles & 50–950 ramp

primary
#5F1DA1
secondary
#8DC455
accent
#EC3C94
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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