#5F1B89#5F1B89

#5F1B89 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.171 H 308.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5F1B89
RGBrgb(95, 27, 137)
HSLhsl(277, 67%, 32%)
HSVhsv(277, 80%, 54%)
CMYKcmyk(30.7%, 80.3%, 0%, 46.3%)
CIE-LABlab(26.80, 48.58, -47.23)
CIE-LCHlch(26.80, 67.75, 315.81°)
OKLaboklab(39.1% 0.1059 -0.1342)
OKLCHoklch(39.1% 0.171 308.3)
XYZxyz(9.6257, 5.0231, 24.1245)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B89 #45891B
analogous
#281B89 #5F1B89 #891B7C
triadic
#5F1B89 #895F1B #1B895F
tetradic
#5F1B89 #89281B #45891B #1B7C89
square
#5F1B89 #89281B #45891B #1B7C89
split-complementary
#5F1B89 #7C891B #1B8928
monochromatic
#180723 #3C1156 #5F1B89 #8225BC #A144DA

Accessibility & contrast

On white

10.48
#5F1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F1B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B89
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B89#FFFFFF#000000##FFFFFF
##5F1B891.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#583752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f1b89;
/* rgb */ color: rgb(95, 27, 137);
/* oklch */ color: oklch(39.1% 0.171 308.3);
Tailwind
colors: {
  custom: {
    50: '#9160ac',
    500: '#5f1b89',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b89;
$custom-light: #9160ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b89",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 277.091,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39097,
    "c": 0.17092,
    "h": 308.3
  },
  "luminance": 0.05023
}

Semantic roles & 50–950 ramp

primary
#5F1B89
secondary
#72BC44
accent
#EA3E80
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5F1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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