#5F1F97#5F1F97

#5F1F97 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.181 H 303.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5F1F97
RGBrgb(95, 31, 151)
HSLhsl(272, 66%, 36%)
HSVhsv(272, 79%, 59%)
CMYKcmyk(37.1%, 79.5%, 0%, 40.8%)
CIE-LABlab(28.50, 50.30, -53.11)
CIE-LCHlch(28.50, 73.15, 313.44°)
OKLaboklab(40.65% 0.0988 -0.1515)
OKLCHoklch(40.65% 0.181 303.1)
XYZxyz(10.7939, 5.6472, 29.7935)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F97 #57971F
analogous
#231F97 #5F1F97 #971F93
triadic
#5F1F97 #975F1F #1F975F
tetradic
#5F1F97 #97231F #57971F #1F9397
square
#5F1F97 #97231F #57971F #1F9397
split-complementary
#5F1F97 #93971F #1F9723
monochromatic
#1F0A31 #3F1564 #5F1F97 #7F29CA #9D54DC

Accessibility & contrast

On white

9.86
#5F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5F1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F97
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F97#FFFFFF#000000##FFFFFF
##5F1F971.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#533F5B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1f97;
/* rgb */ color: rgb(95, 31, 151);
/* oklch */ color: oklch(40.7% 0.181 303.1);
Tailwind
colors: {
  custom: {
    50: '#9263b6',
    500: '#5f1f97',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f97;
$custom-light: #9263b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f97",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 272,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40653,
    "c": 0.18089,
    "h": 303.1
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#5F1F97
secondary
#85BF52
accent
#E93F8E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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