#5F1B97#5F1B97

#5F1B97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.185 H 303.5°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5F1B97
RGBrgb(95, 27, 151)
HSLhsl(273, 70%, 35%)
HSVhsv(273, 82%, 59%)
CMYKcmyk(37.1%, 82.1%, 0%, 40.8%)
CIE-LABlab(27.98, 51.81, -53.96)
CIE-LCHlch(27.98, 74.81, 313.84°)
OKLaboklab(40.29% 0.102 -0.154)
OKLCHoklch(40.29% 0.185 303.5)
XYZxyz(10.6958, 5.4511, 29.7608)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B97 #53971B
analogous
#211B97 #5F1B97 #971B91
triadic
#5F1B97 #975F1B #1B975F
tetradic
#5F1B97 #97211B #53971B #1B9197
square
#5F1B97 #97211B #53971B #1B9197
split-complementary
#5F1B97 #91971B #1B9721
monochromatic
#1E082F #3E1263 #5F1B97 #8024CB #9D4DDF

Accessibility & contrast

On white

10.05
#5F1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1B97
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B97#FFFFFF#000000##FFFFFF
##5F1B971.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#533D5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1b97;
/* rgb */ color: rgb(95, 27, 151);
/* oklch */ color: oklch(40.3% 0.185 303.5);
Tailwind
colors: {
  custom: {
    50: '#9261b7',
    500: '#5f1b97',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b97;
$custom-light: #9261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b97",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 272.903,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4029,
    "c": 0.18472,
    "h": 303.5
  },
  "luminance": 0.05451
}

Semantic roles & 50–950 ramp

primary
#5F1B97
secondary
#81C14C
accent
#EC3B8B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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