#5F2391#5F2391

#5F2391 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.170 H 304.6°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5F2391
RGBrgb(95, 35, 145)
HSLhsl(273, 61%, 35%)
HSVhsv(273, 76%, 57%)
CMYKcmyk(34.5%, 75.9%, 0%, 43.1%)
CIE-LABlab(28.59, 47.19, -49.28)
CIE-LCHlch(28.59, 68.23, 313.76°)
OKLaboklab(40.56% 0.0967 -0.1403)
OKLCHoklch(40.56% 0.17 304.6)
XYZxyz(10.4300, 5.6793, 27.3293)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2391 #559123
analogous
#282391 #5F2391 #91238C
triadic
#5F2391 #915F23 #23915F
tetradic
#5F2391 #912823 #559123 #238C91
square
#5F2391 #912823 #559123 #238C91
split-complementary
#5F2391 #8C9123 #239128
monochromatic
#1E0B2E #3F1760 #5F2391 #7F2FC2 #9D58D7

Accessibility & contrast

On white

9.83
#5F2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2391
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2391#FFFFFF#000000##FFFFFF
##5F23911.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#553E58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2391;
/* rgb */ color: rgb(95, 35, 145);
/* oklch */ color: oklch(40.6% 0.170 304.6);
Tailwind
colors: {
  custom: {
    50: '#9164b2',
    500: '#5f2391',
    950: '#000000',
  },
}
SCSS
$custom: #5f2391;
$custom-light: #9164b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2391",
  "rgb": {
    "r": 95,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 272.727,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40557,
    "c": 0.17037,
    "h": 304.6
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

primary
#5F2391
secondary
#83BB55
accent
#E4448D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2391

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

Preview Lab → · Contrast checker → · Palette generator →

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