#5F1C9E#5F1C9E

#5F1C9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 41.0% C 0.191 H 301.3°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5F1C9E
RGBrgb(95, 28, 158)
HSLhsl(271, 70%, 36%)
HSVhsv(271, 82%, 62%)
CMYKcmyk(39.9%, 82.3%, 0%, 38%)
CIE-LABlab(28.73, 53.11, -57.03)
CIE-LCHlch(28.73, 77.93, 312.96°)
OKLaboklab(41% 0.0991 -0.163)
OKLCHoklch(41% 0.191 301.3)
XYZxyz(11.3046, 5.7319, 32.8519)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C9E #5B9E1C
analogous
#1E1C9E #5F1C9E #9E1C9C
triadic
#5F1C9E #9E5F1C #1C9E5F
tetradic
#5F1C9E #9E1E1C #5B9E1C #1C9C9E
square
#5F1C9E #9E1E1C #5B9E1C #1C9C9E
split-complementary
#5F1C9E #9C9E1C #1C9E1E
monochromatic
#200A36 #40136A #5F1C9E #7E25D2 #9C54E1

Accessibility & contrast

On white

9.78
#5F1C9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1C9E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C9E#FFFFFF#000000##FFFFFF
##5F1C9E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#51415E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1c9e;
/* rgb */ color: rgb(95, 28, 158);
/* oklch */ color: oklch(41.0% 0.191 301.3);
Tailwind
colors: {
  custom: {
    50: '#9362bc',
    500: '#5f1c9e',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c9e;
$custom-light: #9362bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c9e",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 158
  },
  "hsl": {
    "h": 270.923,
    "s": 69.892,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40996,
    "c": 0.19076,
    "h": 301.3
  },
  "luminance": 0.05732
}

Semantic roles & 50–950 ramp

primary
#5F1C9E
secondary
#89C452
accent
#ED3B91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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