#5F2591#5F2591

#5F2591 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.168 H 304.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#5F2591
RGBrgb(95, 37, 145)
HSLhsl(272, 59%, 36%)
HSVhsv(272, 74%, 57%)
CMYKcmyk(34.5%, 74.5%, 0%, 43.1%)
CIE-LABlab(28.90, 46.29, -48.77)
CIE-LCHlch(28.90, 67.24, 313.51°)
OKLaboklab(40.78% 0.0947 -0.1388)
OKLCHoklch(40.78% 0.168 304.3)
XYZxyz(10.4905, 5.8004, 27.3495)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2591 #579125
analogous
#292591 #5F2591 #91258D
triadic
#5F2591 #915F25 #25915F
tetradic
#5F2591 #912925 #579125 #258D91
square
#5F2591 #912925 #579125 #258D91
split-complementary
#5F2591 #8D9125 #259129
monochromatic
#1F0C2F #3F1960 #5F2591 #7F31C2 #9D5BD5

Accessibility & contrast

On white

9.72
#5F2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2591
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2591#FFFFFF#000000##FFFFFF
##5F25911.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004394
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#553F59
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2591;
/* rgb */ color: rgb(95, 37, 145);
/* oklch */ color: oklch(40.8% 0.168 304.3);
Tailwind
colors: {
  custom: {
    50: '#9165b2',
    500: '#5f2591',
    950: '#000000',
  },
}
SCSS
$custom: #5f2591;
$custom-light: #9165b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2591",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 272.222,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40779,
    "c": 0.16803,
    "h": 304.3
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#5F2591
secondary
#85BA58
accent
#E3458E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2591

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

Preview Lab → · Contrast checker → · Palette generator →

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