#5F1B85#5F1B85

#5F1B85 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.167 H 309.8°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#5F1B85
RGBrgb(95, 27, 133)
HSLhsl(278, 66%, 31%)
HSVhsv(278, 80%, 52%)
CMYKcmyk(28.6%, 79.7%, 0%, 47.8%)
CIE-LABlab(26.48, 47.67, -45.25)
CIE-LCHlch(26.48, 65.73, 316.49°)
OKLaboklab(38.77% 0.1068 -0.1284)
OKLCHoklch(38.77% 0.167 309.8)
XYZxyz(9.3440, 4.9104, 22.6413)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B85 #41851B
analogous
#2A1B85 #5F1B85 #851B76
triadic
#5F1B85 #855F1B #1B855F
tetradic
#5F1B85 #852A1B #41851B #1B7685
square
#5F1B85 #852A1B #41851B #1B7685
split-complementary
#5F1B85 #76851B #1B852A
monochromatic
#16061F #3B1152 #5F1B85 #8325B8 #A342D9

Accessibility & contrast

On white

10.60
#5F1B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5F1B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B85
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B85#FFFFFF#000000##FFFFFF
##5F1B851.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#593550
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1b85;
/* rgb */ color: rgb(95, 27, 133);
/* oklch */ color: oklch(38.8% 0.167 309.8);
Tailwind
colors: {
  custom: {
    50: '#9160a9',
    500: '#5f1b85',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b85;
$custom-light: #9160a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b85",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 133
  },
  "hsl": {
    "h": 278.491,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3877,
    "c": 0.167,
    "h": 309.8
  },
  "luminance": 0.0491
}

Semantic roles & 50–950 ramp

primary
#5F1B85
secondary
#6DB844
accent
#E93F7C
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1B85

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

Preview Lab → · Contrast checker → · Palette generator →

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