#5F1F91#5F1F91

#5F1F91 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.175 H 305.0°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5F1F91
RGBrgb(95, 31, 145)
HSLhsl(274, 65%, 35%)
HSVhsv(274, 79%, 57%)
CMYKcmyk(34.5%, 78.6%, 0%, 43.1%)
CIE-LABlab(28.00, 48.87, -50.24)
CIE-LCHlch(28.00, 70.09, 314.21°)
OKLaboklab(40.14% 0.1004 -0.1431)
OKLCHoklch(40.14% 0.175 305)
XYZxyz(10.3190, 5.4573, 27.2923)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1F91 #51911F
analogous
#261F91 #5F1F91 #911F8A
triadic
#5F1F91 #915F1F #1F915F
tetradic
#5F1F91 #91261F #51911F #1F8A91
square
#5F1F91 #91261F #51911F #1F8A91
split-complementary
#5F1F91 #8A911F #1F9126
monochromatic
#1D092C #3E145F #5F1F91 #802AC3 #9E51DA

Accessibility & contrast

On white

10.04
#5F1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1F91
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1F91#FFFFFF#000000##FFFFFF
##5F1F911.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#563C57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1f91;
/* rgb */ color: rgb(95, 31, 145);
/* oklch */ color: oklch(40.1% 0.175 305.0);
Tailwind
colors: {
  custom: {
    50: '#9262b2',
    500: '#5f1f91',
    950: '#000000',
  },
}
SCSS
$custom: #5f1f91;
$custom-light: #9262b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1f91",
  "rgb": {
    "r": 95,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 273.684,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40143,
    "c": 0.17478,
    "h": 305
  },
  "luminance": 0.05457
}

Semantic roles & 50–950 ramp

primary
#5F1F91
secondary
#7FBD4F
accent
#E8408A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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