#5F105F#5F105F

#5F105F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.144 H 328.1°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#5F105F
RGBrgb(95, 16, 95)
HSLhsl(300, 71%, 22%)
HSVhsv(300, 83%, 37%)
CMYKcmyk(0%, 83.2%, 0%, 62.7%)
CIE-LABlab(22.41, 43.73, -27.37)
CIE-LCHlch(22.41, 51.59, 327.96°)
OKLaboklab(35.02% 0.1221 -0.0759)
OKLCHoklch(35.02% 0.144 328.1)
XYZxyz(6.9701, 3.6302, 11.1578)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F105F #105F10
analogous
#38105F #5F105F #5F1038
triadic
#5F105F #5F5F10 #105F5F
tetradic
#5F105F #5F3810 #105F10 #10385F
square
#5F105F #5F3810 #105F10 #10385F
split-complementary
#5F105F #385F10 #105F38
monochromatic
#1A041A #2B072B #5F105F #931993 #C822C8

Accessibility & contrast

On white

12.17
#5F105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5F105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F105F
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F105F#FFFFFF#000000##FFFFFF
##5F105F1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#27395D
Tritanopia (blue-blind)
#621E38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f105f;
/* rgb */ color: rgb(95, 16, 95);
/* oklch */ color: oklch(35.0% 0.144 328.1);
Tailwind
colors: {
  custom: {
    50: '#905a8d',
    500: '#5f105f',
    950: '#000000',
  },
}
SCSS
$custom: #5f105f;
$custom-light: #905a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f105f",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.35022,
    "c": 0.14375,
    "h": 328.1
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#5F105F
secondary
#339833
accent
#EE3A3A
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F105F

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

Preview Lab → · Contrast checker → · Palette generator →

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