#5F1D8D#5F1D8D

#5F1D8D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.173 H 306.6°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5F1D8D
RGBrgb(95, 29, 141)
HSLhsl(275, 66%, 33%)
HSVhsv(275, 79%, 55%)
CMYKcmyk(32.6%, 79.4%, 0%, 44.7%)
CIE-LABlab(27.39, 48.73, -48.75)
CIE-LCHlch(27.39, 68.93, 314.99°)
OKLaboklab(39.62% 0.1031 -0.1387)
OKLCHoklch(39.62% 0.173 306.6)
XYZxyz(9.9653, 5.2348, 25.6796)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D8D #4B8D1D
analogous
#271D8D #5F1D8D #8D1D83
triadic
#5F1D8D #8D5F1D #1D8D5F
tetradic
#5F1D8D #8D271D #4B8D1D #1D838D
square
#5F1D8D #8D271D #4B8D1D #1D838D
split-complementary
#5F1D8D #838D1D #1D8D27
monochromatic
#1B0827 #3D135A #5F1D8D #8127C0 #9F4BDA

Accessibility & contrast

On white

10.26
#5F1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D8D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D8D#FFFFFF#000000##FFFFFF
##5F1D8D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#573A55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1d8d;
/* rgb */ color: rgb(95, 29, 141);
/* oklch */ color: oklch(39.6% 0.173 306.6);
Tailwind
colors: {
  custom: {
    50: '#9161af',
    500: '#5f1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d8d;
$custom-light: #9161af;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d8d",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 275.357,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39615,
    "c": 0.17284,
    "h": 306.6
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#5F1D8D
secondary
#79BC4A
accent
#E93F85
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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