#5F1B9E#5F1B9E

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

Color values

HEX#5F1B9E
RGBrgb(95, 27, 158)
HSLhsl(271, 71%, 36%)
HSVhsv(271, 83%, 62%)
CMYKcmyk(39.9%, 82.9%, 0%, 38%)
CIE-LABlab(28.60, 53.46, -57.23)
CIE-LCHlch(28.60, 78.31, 313.05°)
OKLaboklab(40.91% 0.0998 -0.1636)
OKLCHoklch(40.91% 0.192 301.4)
XYZxyz(11.2813, 5.6853, 32.8442)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B9E #5A9E1B
analogous
#1E1B9E #5F1B9E #9E1B9C
triadic
#5F1B9E #9E5F1B #1B9E5F
tetradic
#5F1B9E #9E1E1B #5A9E1B #1B9C9E
square
#5F1B9E #9E1E1B #5A9E1B #1B9C9E
split-complementary
#5F1B9E #9C9E1B #1B9E1E
monochromatic
#200935 #40126A #5F1B9E #7E24D2 #9C52E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1B9E#FFFFFF#000000##FFFFFF
##5F1B9E1.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)
#0043A1
Deuteranopia (green-blind)
#00439C
Tritanopia (blue-blind)
#51405E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1b9e;
/* rgb */ color: rgb(95, 27, 158);
/* oklch */ color: oklch(40.9% 0.192 301.4);
Tailwind
colors: {
  custom: {
    50: '#9361bc',
    500: '#5f1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b9e;
$custom-light: #9361bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b9e",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 271.145,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40912,
    "c": 0.19163,
    "h": 301.4
  },
  "luminance": 0.05685
}

Semantic roles & 50–950 ramp

primary
#5F1B9E
secondary
#88C451
accent
#EE3A90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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