#5F1FA0#5F1FA0

#5F1FA0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.190 H 300.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5F1FA0
RGBrgb(95, 31, 160)
HSLhsl(270, 68%, 37%)
HSVhsv(270, 81%, 63%)
CMYKcmyk(40.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(29.29, 52.47, -57.32)
CIE-LCHlch(29.29, 77.71, 312.47°)
OKLaboklab(41.44% 0.0962 -0.1639)
OKLCHoklch(41.44% 0.19 300.4)
XYZxyz(11.5529, 5.9508, 33.7909)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1FA0 #60A01F
analogous
#1F20A0 #5F1FA0 #9F1FA0
triadic
#5F1FA0 #A05F1F #1FA05F
tetradic
#5F1FA0 #A01F20 #60A01F #1FA09F
square
#5F1FA0 #A01F20 #60A01F #1FA09F
split-complementary
#5F1FA0 #A09F1F #20A01F
monochromatic
#220B39 #41156D #5F1FA0 #7D29D3 #9C5ADF

Accessibility & contrast

On white

9.59
#5F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1FA0
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1FA0#FFFFFF#000000##FFFFFF
##5F1FA01.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#504360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f1fa0;
/* rgb */ color: rgb(95, 31, 160);
/* oklch */ color: oklch(41.4% 0.190 300.4);
Tailwind
colors: {
  custom: {
    50: '#9363bd',
    500: '#5f1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5f1fa0;
$custom-light: #9363bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1fa0",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 269.767,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41441,
    "c": 0.19005,
    "h": 300.4
  },
  "luminance": 0.05951
}

Semantic roles & 50–950 ramp

primary
#5F1FA0
secondary
#8EC358
accent
#EA3D95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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