#5F1FA1#5F1FA1

#5F1FA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.191 H 300.1°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#5F1FA1
RGBrgb(95, 31, 161)
HSLhsl(270, 68%, 38%)
HSVhsv(270, 81%, 63%)
CMYKcmyk(41%, 80.7%, 0%, 36.9%)
CIE-LABlab(29.38, 52.71, -57.79)
CIE-LCHlch(29.38, 78.22, 312.37°)
OKLaboklab(41.53% 0.0959 -0.1652)
OKLCHoklch(41.53% 0.191 300.1)
XYZxyz(11.6407, 5.9860, 34.2534)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1FA1 #61A11F
analogous
#1F20A1 #5F1FA1 #A01FA1
triadic
#5F1FA1 #A15F1F #1FA15F
tetradic
#5F1FA1 #A11F20 #61A11F #1FA1A0
square
#5F1FA1 #A11F20 #61A11F #1FA1A0
split-complementary
#5F1FA1 #A1A01F #20A11F
monochromatic
#220B3A #41156E #5F1FA1 #7D29D4 #9C5BDF

Accessibility & contrast

On white

9.56
#5F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1FA1
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1FA1#FFFFFF#000000##FFFFFF
##5F1FA11.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1fa1;
/* rgb */ color: rgb(95, 31, 161);
/* oklch */ color: oklch(41.5% 0.191 300.1);
Tailwind
colors: {
  custom: {
    50: '#9363be',
    500: '#5f1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #5f1fa1;
$custom-light: #9363be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1fa1",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 269.538,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41531,
    "c": 0.19107,
    "h": 300.1
  },
  "luminance": 0.05986
}

Semantic roles & 50–950 ramp

primary
#5F1FA1
secondary
#8FC458
accent
#EB3D95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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