#5F1AA0#5F1AA0

#5F1AA0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.194 H 300.9°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5F1AA0
RGBrgb(95, 26, 160)
HSLhsl(271, 72%, 36%)
HSVhsv(271, 84%, 63%)
CMYKcmyk(40.6%, 83.8%, 0%, 37.3%)
CIE-LABlab(28.67, 54.28, -58.34)
CIE-LCHlch(28.67, 79.69, 312.93°)
OKLaboklab(41.01% 0.0999 -0.1668)
OKLCHoklch(41.01% 0.194 300.9)
XYZxyz(11.4323, 5.7097, 33.7507)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1AA0 #5BA01A
analogous
#1C1AA0 #5F1AA0 #A01A9E
triadic
#5F1AA0 #A05F1A #1AA05F
tetradic
#5F1AA0 #A01C1A #5BA01A #1A9EA0
square
#5F1AA0 #A01C1A #5BA01A #1A9EA0
split-complementary
#5F1AA0 #9EA01A #1AA01C
monochromatic
#200937 #40116B #5F1AA0 #7E23D5 #9C52E3

Accessibility & contrast

On white

9.80
#5F1AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F1AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1AA0
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1AA0#FFFFFF#000000##FFFFFF
##5F1AA01.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A4
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#50415F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1aa0;
/* rgb */ color: rgb(95, 26, 160);
/* oklch */ color: oklch(41.0% 0.194 300.9);
Tailwind
colors: {
  custom: {
    50: '#9361bd',
    500: '#5f1aa0',
    950: '#000000',
  },
}
SCSS
$custom: #5f1aa0;
$custom-light: #9361bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1aa0",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 160
  },
  "hsl": {
    "h": 270.896,
    "s": 72.043,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41011,
    "c": 0.19443,
    "h": 300.9
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#5F1AA0
secondary
#89C550
accent
#EF3991
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F1AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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