#5F217E#5F217E

#5F217E is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.8% C 0.153 H 311.9°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5F217E
RGBrgb(95, 33, 126)
HSLhsl(280, 58%, 31%)
HSVhsv(280, 74%, 49%)
CMYKcmyk(24.6%, 73.8%, 0%, 50.6%)
CIE-LABlab(26.81, 43.60, -40.31)
CIE-LCHlch(26.81, 59.38, 317.25°)
OKLaboklab(38.84% 0.1021 -0.1139)
OKLCHoklch(38.84% 0.153 311.9)
XYZxyz(9.0284, 5.0272, 20.2294)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F217E #407E21
analogous
#30217E #5F217E #7E216E
triadic
#5F217E #7E5F21 #217E5F
tetradic
#5F217E #7E3021 #407E21 #216E7E
square
#5F217E #7E3021 #407E21 #216E7E
split-complementary
#5F217E #6E7E21 #217E30
monochromatic
#16081D #3A144E #5F217E #842EAE #A34AD0

Accessibility & contrast

On white

10.47
#5F217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5F217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F217E
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F217E#FFFFFF#000000##FFFFFF
##5F217E1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#15417C
Tritanopia (blue-blind)
#5B354D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f217e;
/* rgb */ color: rgb(95, 33, 126);
/* oklch */ color: oklch(38.8% 0.153 311.9);
Tailwind
colors: {
  custom: {
    50: '#9062a4',
    500: '#5f217e',
    950: '#000000',
  },
}
SCSS
$custom: #5f217e;
$custom-light: #9062a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f217e",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 280,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38837,
    "c": 0.15296,
    "h": 311.9
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#5F217E
secondary
#6CB14A
accent
#E2467A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F217E

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

Preview Lab → · Contrast checker → · Palette generator →

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