#5F216C#5F216C

#5F216C is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.135 H 320.2°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#5F216C
RGBrgb(95, 33, 108)
HSLhsl(290, 53%, 28%)
HSVhsv(290, 69%, 42%)
CMYKcmyk(12%, 69.4%, 0%, 57.6%)
CIE-LABlab(25.57, 39.64, -30.81)
CIE-LCHlch(25.57, 50.21, 322.15°)
OKLaboklab(37.56% 0.1035 -0.0861)
OKLCHoklch(37.56% 0.135 320.2)
XYZxyz(7.9696, 4.6037, 14.6533)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F216C #2E6C21
analogous
#39216C #5F216C #6C2153
triadic
#5F216C #6C5F21 #216C5F
tetradic
#5F216C #6C3921 #2E6C21 #21536C
square
#5F216C #6C3921 #2E6C21 #21536C
split-complementary
#5F216C #536C21 #216C39
monochromatic
#150717 #36133D #5F216C #882F9B #AF42C5

Accessibility & contrast

On white

10.93
#5F216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F216C
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F216C#FFFFFF#000000##FFFFFF
##5F216C1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09386E
Deuteranopia (green-blind)
#283F6A
Tritanopia (blue-blind)
#602E43
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f216c;
/* rgb */ color: rgb(95, 33, 108);
/* oklch */ color: oklch(37.6% 0.135 320.2);
Tailwind
colors: {
  custom: {
    50: '#8f6296',
    500: '#5f216c',
    950: '#000000',
  },
}
SCSS
$custom: #5f216c;
$custom-light: #8f6296;
$custom-dark: #000000;
JSON
{
  "hex": "#5f216c",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 289.6,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37556,
    "c": 0.13462,
    "h": 320.2
  },
  "luminance": 0.04603
}

Semantic roles & 50–950 ramp

primary
#5F216C
secondary
#58A049
accent
#DD4B64
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050D
muted
#7E7A7E

Preview Lab

Preview with #5F216C

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

Preview Lab → · Contrast checker → · Palette generator →

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