#5F216F#5F216F

#5F216F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.138 H 318.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#5F216F
RGBrgb(95, 33, 111)
HSLhsl(288, 54%, 28%)
HSVhsv(288, 70%, 44%)
CMYKcmyk(14.4%, 70.3%, 0%, 56.5%)
CIE-LABlab(25.77, 40.28, -32.43)
CIE-LCHlch(25.77, 51.72, 321.16°)
OKLaboklab(37.76% 0.1034 -0.0908)
OKLCHoklch(37.76% 0.138 318.7)
XYZxyz(8.1320, 4.6687, 15.5086)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F216F #316F21
analogous
#38216F #5F216F #6F2158
triadic
#5F216F #6F5F21 #216F5F
tetradic
#5F216F #6F3821 #316F21 #21586F
square
#5F216F #6F3821 #316F21 #21586F
split-complementary
#5F216F #586F21 #216F38
monochromatic
#140718 #371340 #5F216F #872F9E #AC43C7

Accessibility & contrast

On white

10.86
#5F216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F216F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F216F#FFFFFF#000000##FFFFFF
##5F216F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033971
Deuteranopia (green-blind)
#253F6D
Tritanopia (blue-blind)
#5F2F45
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f216f;
/* rgb */ color: rgb(95, 33, 111);
/* oklch */ color: oklch(37.8% 0.138 318.7);
Tailwind
colors: {
  custom: {
    50: '#8f6299',
    500: '#5f216f',
    950: '#000000',
  },
}
SCSS
$custom: #5f216f;
$custom-light: #8f6299;
$custom-dark: #000000;
JSON
{
  "hex": "#5f216f",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 287.692,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37759,
    "c": 0.13764,
    "h": 318.7
  },
  "luminance": 0.04668
}

Semantic roles & 50–950 ramp

primary
#5F216F
secondary
#5CA349
accent
#DE4A68
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F216F

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

Preview Lab → · Contrast checker → · Palette generator →

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