#5F1C91#5F1C91

#5F1C91 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.178 H 305.4°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5F1C91
RGBrgb(95, 28, 145)
HSLhsl(274, 68%, 34%)
HSVhsv(274, 81%, 57%)
CMYKcmyk(34.5%, 80.7%, 0%, 43.1%)
CIE-LABlab(27.59, 50.04, -50.90)
CIE-LCHlch(27.59, 71.38, 314.51°)
OKLaboklab(39.86% 0.103 -0.145)
OKLCHoklch(39.86% 0.178 305.4)
XYZxyz(10.2443, 5.3078, 27.2674)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C91 #4E911C
analogous
#251C91 #5F1C91 #911C89
triadic
#5F1C91 #915F1C #1C915F
tetradic
#5F1C91 #91251C #4E911C #1C8991
square
#5F1C91 #91251C #4E911C #1C8991
split-complementary
#5F1C91 #89911C #1C9125
monochromatic
#1C082A #3D125E #5F1C91 #8126C4 #9E4BDC

Accessibility & contrast

On white

10.19
#5F1C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F1C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C91
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C91#FFFFFF#000000##FFFFFF
##5F1C911.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#563B57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1c91;
/* rgb */ color: rgb(95, 28, 145);
/* oklch */ color: oklch(39.9% 0.178 305.4);
Tailwind
colors: {
  custom: {
    50: '#9261b2',
    500: '#5f1c91',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c91;
$custom-light: #9261b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c91",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 145
  },
  "hsl": {
    "h": 274.359,
    "s": 67.63,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39859,
    "c": 0.17784,
    "h": 305.4
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#5F1C91
secondary
#7CBE4A
accent
#EB3D87
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1C91

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

Preview Lab → · Contrast checker → · Palette generator →

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