#5F1C8C#5F1C8C

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

Color values

HEX#5F1C8C
RGBrgb(95, 28, 140)
HSLhsl(276, 67%, 33%)
HSVhsv(276, 80%, 55%)
CMYKcmyk(32.1%, 80%, 0%, 45.1%)
CIE-LABlab(27.18, 48.88, -48.48)
CIE-LCHlch(27.18, 68.85, 315.24°)
OKLaboklab(39.44% 0.1043 -0.1379)
OKLCHoklch(39.44% 0.173 307.1)
XYZxyz(9.8672, 5.1570, 25.2814)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C8C #498C1C
analogous
#271C8C #5F1C8C #8C1C81
triadic
#5F1C8C #8C5F1C #1C8C5F
tetradic
#5F1C8C #8C271C #498C1C #1C818C
square
#5F1C8C #8C271C #498C1C #1C818C
split-complementary
#5F1C8C #818C1C #1C8C27
monochromatic
#1A0826 #3C1259 #5F1C8C #8226BF #A048DA

Accessibility & contrast

On white

10.34
#5F1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5F1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C8C
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C8C#FFFFFF#000000##FFFFFF
##5F1C8C1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1c8c;
/* rgb */ color: rgb(95, 28, 140);
/* oklch */ color: oklch(39.4% 0.173 307.1);
Tailwind
colors: {
  custom: {
    50: '#9161ae',
    500: '#5f1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c8c;
$custom-light: #9161ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c8c",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 275.893,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39438,
    "c": 0.17287,
    "h": 307.1
  },
  "luminance": 0.05157
}

Semantic roles & 50–950 ramp

primary
#5F1C8C
secondary
#76BC48
accent
#EA3E83
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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