#5F1B9C#5F1B9C

#5F1B9C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.7% C 0.190 H 302.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5F1B9C
RGBrgb(95, 27, 156)
HSLhsl(272, 70%, 36%)
HSVhsv(272, 83%, 61%)
CMYKcmyk(39.1%, 82.7%, 0%, 38.8%)
CIE-LABlab(28.42, 52.99, -56.30)
CIE-LCHlch(28.42, 77.32, 313.26°)
OKLaboklab(40.73% 0.1005 -0.1609)
OKLCHoklch(40.73% 0.19 302)
XYZxyz(11.1105, 5.6170, 31.9449)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B9C #589C1B
analogous
#1E1B9C #5F1B9C #9C1B98
triadic
#5F1B9C #9C5F1B #1B9C5F
tetradic
#5F1B9C #9C1E1B #589C1B #1B989C
square
#5F1B9C #9C1E1B #589C1B #1B989C
split-complementary
#5F1B9C #989C1B #1B9C1E
monochromatic
#1F0934 #3F1268 #5F1B9C #7F24D0 #9D51E1

Accessibility & contrast

On white

9.89
#5F1B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F1B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B9C
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B9C#FFFFFF#000000##FFFFFF
##5F1B9C1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#523F5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1b9c;
/* rgb */ color: rgb(95, 27, 156);
/* oklch */ color: oklch(40.7% 0.190 302.0);
Tailwind
colors: {
  custom: {
    50: '#9361ba',
    500: '#5f1b9c',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b9c;
$custom-light: #9361ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b9c",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 271.628,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40732,
    "c": 0.18966,
    "h": 302
  },
  "luminance": 0.05617
}

Semantic roles & 50–950 ramp

primary
#5F1B9C
secondary
#86C34F
accent
#ED3B8F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5F1B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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