#5F1F99#5F1F99

#5F1F99 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.183 H 302.5°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5F1F99
RGBrgb(95, 31, 153)
HSLhsl(271, 66%, 36%)
HSVhsv(271, 80%, 60%)
CMYKcmyk(37.9%, 79.7%, 0%, 40%)
CIE-LABlab(28.68, 50.78, -54.06)
CIE-LCHlch(28.68, 74.17, 313.21°)
OKLaboklab(40.83% 0.0983 -0.1543)
OKLCHoklch(40.83% 0.183 302.5)
XYZxyz(10.9577, 5.7127, 30.6562)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F99 #59991F
analogous
#221F99 #5F1F99 #991F96
triadic
#5F1F99 #995F1F #1F995F
tetradic
#5F1F99 #99221F #59991F #1F9699
square
#5F1F99 #99221F #59991F #1F9699
split-complementary
#5F1F99 #96991F #1F9922
monochromatic
#200A33 #3F1566 #5F1F99 #7F29CC #9D56DD

Accessibility & contrast

On white

9.80
#5F1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F99
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F99#FFFFFF#000000##FFFFFF
##5F1F991.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#53405C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1f99;
/* rgb */ color: rgb(95, 31, 153);
/* oklch */ color: oklch(40.8% 0.183 302.5);
Tailwind
colors: {
  custom: {
    50: '#9263b8',
    500: '#5f1f99',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f99;
$custom-light: #9263b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f99",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 271.475,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40826,
    "c": 0.18293,
    "h": 302.5
  },
  "luminance": 0.05713
}

Semantic roles & 50–950 ramp

primary
#5F1F99
secondary
#87C054
accent
#E93F90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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