#5F1F9B#5F1F9B

#5F1F9B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.185 H 301.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5F1F9B
RGBrgb(95, 31, 155)
HSLhsl(271, 67%, 36%)
HSVhsv(271, 80%, 61%)
CMYKcmyk(38.7%, 80%, 0%, 39.2%)
CIE-LABlab(28.85, 51.26, -55.00)
CIE-LCHlch(28.85, 75.18, 312.99°)
OKLaboklab(41% 0.0977 -0.1571)
OKLCHoklch(41% 0.185 301.9)
XYZxyz(11.1243, 5.7794, 31.5335)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F9B #5B9B1F
analogous
#211F9B #5F1F9B #9B1F99
triadic
#5F1F9B #9B5F1F #1F9B5F
tetradic
#5F1F9B #9B211F #5B9B1F #1F999B
square
#5F1F9B #9B211F #5B9B1F #1F999B
split-complementary
#5F1F9B #999B1F #1F9B21
monochromatic
#200B35 #401568 #5F1F9B #7E29CE #9C57DD

Accessibility & contrast

On white

9.74
#5F1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F9B
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F9B#FFFFFF#000000##FFFFFF
##5F1F9B1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#52415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1f9b;
/* rgb */ color: rgb(95, 31, 155);
/* oklch */ color: oklch(41.0% 0.185 301.9);
Tailwind
colors: {
  custom: {
    50: '#9363b9',
    500: '#5f1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f9b;
$custom-light: #9363b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f9b",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 270.968,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41,
    "c": 0.18497,
    "h": 301.9
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#5F1F9B
secondary
#89C155
accent
#EA3E91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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