#5F1B91#5F1B91

#5F1B91 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.179 H 305.5°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5F1B91
RGBrgb(95, 27, 145)
HSLhsl(275, 69%, 34%)
HSVhsv(275, 81%, 57%)
CMYKcmyk(34.5%, 81.4%, 0%, 43.1%)
CIE-LABlab(27.47, 50.41, -51.11)
CIE-LCHlch(27.47, 71.79, 314.61°)
OKLaboklab(39.77% 0.1038 -0.1456)
OKLCHoklch(39.77% 0.179 305.5)
XYZxyz(10.2209, 5.2612, 27.2596)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B91 #4D911B
analogous
#241B91 #5F1B91 #911B88
triadic
#5F1B91 #915F1B #1B915F
tetradic
#5F1B91 #91241B #4D911B #1B8891
square
#5F1B91 #91241B #4D911B #1B8891
split-complementary
#5F1B91 #88911B #1B9124
monochromatic
#1B082A #3D115D #5F1B91 #8125C5 #9E49DD

Accessibility & contrast

On white

10.23
#5F1B91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1B91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B91
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B91#FFFFFF#000000##FFFFFF
##5F1B911.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F94
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#563B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1b91;
/* rgb */ color: rgb(95, 27, 145);
/* oklch */ color: oklch(39.8% 0.179 305.5);
Tailwind
colors: {
  custom: {
    50: '#9261b2',
    500: '#5f1b91',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b91;
$custom-light: #9261b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b91",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 145
  },
  "hsl": {
    "h": 274.576,
    "s": 68.605,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3977,
    "c": 0.1788,
    "h": 305.5
  },
  "luminance": 0.05261
}

Semantic roles & 50–950 ramp

primary
#5F1B91
secondary
#7BBF49
accent
#EB3C87
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1B91

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

Preview Lab → · Contrast checker → · Palette generator →

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