#5F1C8D#5F1C8D

#5F1C8D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.174 H 306.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#5F1C8D
RGBrgb(95, 28, 141)
HSLhsl(276, 67%, 33%)
HSVhsv(276, 80%, 55%)
CMYKcmyk(32.6%, 80.1%, 0%, 44.7%)
CIE-LABlab(27.26, 49.11, -48.97)
CIE-LCHlch(27.26, 69.36, 315.08°)
OKLaboklab(39.52% 0.104 -0.1393)
OKLCHoklch(39.52% 0.174 306.7)
XYZxyz(9.9412, 5.1866, 25.6715)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C8D #4A8D1C
analogous
#261C8D #5F1C8D #8D1C82
triadic
#5F1C8D #8D5F1C #1C8D5F
tetradic
#5F1C8D #8D261C #4A8D1C #1C828D
square
#5F1C8D #8D261C #4A8D1C #1C828D
split-complementary
#5F1C8D #828D1C #1C8D26
monochromatic
#1A0827 #3D125A #5F1C8D #8126C0 #9F49DB

Accessibility & contrast

On white

10.31
#5F1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C8D
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C8D#FFFFFF#000000##FFFFFF
##5F1C8D1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#573954
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f1c8d;
/* rgb */ color: rgb(95, 28, 141);
/* oklch */ color: oklch(39.5% 0.174 306.7);
Tailwind
colors: {
  custom: {
    50: '#9161af',
    500: '#5f1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c8d;
$custom-light: #9161af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c8d",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 275.575,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39521,
    "c": 0.17386,
    "h": 306.7
  },
  "luminance": 0.05186
}

Semantic roles & 50–950 ramp

primary
#5F1C8D
secondary
#78BD48
accent
#EA3E84
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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