#5F1F9A#5F1F9A

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

Color values

HEX#5F1F9A
RGBrgb(95, 31, 154)
HSLhsl(271, 66%, 36%)
HSVhsv(271, 80%, 60%)
CMYKcmyk(38.3%, 79.9%, 0%, 39.6%)
CIE-LABlab(28.76, 51.02, -54.53)
CIE-LCHlch(28.76, 74.68, 313.10°)
OKLaboklab(40.91% 0.098 -0.1557)
OKLCHoklch(40.91% 0.184 302.2)
XYZxyz(11.0406, 5.7459, 31.0930)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F9A #5A9A1F
analogous
#221F9A #5F1F9A #9A1F98
triadic
#5F1F9A #9A5F1F #1F9A5F
tetradic
#5F1F9A #9A221F #5A9A1F #1F989A
square
#5F1F9A #9A221F #5A9A1F #1F989A
split-complementary
#5F1F9A #989A1F #1F9A22
monochromatic
#200A34 #401567 #5F1F9A #7E29CD #9C56DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1F9A#FFFFFF#000000##FFFFFF
##5F1F9A1.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)
#00439D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#52405C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1f9a;
/* rgb */ color: rgb(95, 31, 154);
/* oklch */ color: oklch(40.9% 0.184 302.2);
Tailwind
colors: {
  custom: {
    50: '#9263b9',
    500: '#5f1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f9a;
$custom-light: #9263b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f9a",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 271.22,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40913,
    "c": 0.18395,
    "h": 302.2
  },
  "luminance": 0.05746
}

Semantic roles & 50–950 ramp

primary
#5F1F9A
secondary
#88C154
accent
#E93E90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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