#5F1AA1#5F1AA1

#5F1AA1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.1% C 0.195 H 300.6°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#5F1AA1
RGBrgb(95, 26, 161)
HSLhsl(271, 72%, 37%)
HSVhsv(271, 84%, 63%)
CMYKcmyk(41%, 83.9%, 0%, 36.9%)
CIE-LABlab(28.76, 54.52, -58.80)
CIE-LCHlch(28.76, 80.18, 312.84°)
OKLaboklab(41.1% 0.0995 -0.1682)
OKLCHoklch(41.1% 0.195 300.6)
XYZxyz(11.5201, 5.7448, 34.2132)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1AA1 #5CA11A
analogous
#1C1AA1 #5F1AA1 #A11AA0
triadic
#5F1AA1 #A15F1A #1AA15F
tetradic
#5F1AA1 #A11C1A #5CA11A #1AA0A1
square
#5F1AA1 #A11C1A #5CA11A #1AA0A1
split-complementary
#5F1AA1 #A0A11A #1AA11C
monochromatic
#210938 #40116C #5F1AA1 #7E23D6 #9C52E3

Accessibility & contrast

On white

9.77
#5F1AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F1AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1AA1
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1AA1#FFFFFF#000000##FFFFFF
##5F1AA11.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A5
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#4F4160
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1aa1;
/* rgb */ color: rgb(95, 26, 161);
/* oklch */ color: oklch(41.1% 0.195 300.6);
Tailwind
colors: {
  custom: {
    50: '#9361be',
    500: '#5f1aa1',
    950: '#000000',
  },
}
SCSS
$custom: #5f1aa1;
$custom-light: #9361be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1aa1",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 270.667,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41102,
    "c": 0.19542,
    "h": 300.6
  },
  "luminance": 0.05745
}

Semantic roles & 50–950 ramp

primary
#5F1AA1
secondary
#8AC651
accent
#EF3992
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F1AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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