#5F217D#5F217D

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

Color values

HEX#5F217D
RGBrgb(95, 33, 125)
HSLhsl(280, 58%, 31%)
HSVhsv(280, 74%, 49%)
CMYKcmyk(24%, 73.6%, 0%, 51%)
CIE-LABlab(26.74, 43.37, -39.79)
CIE-LCHlch(26.74, 58.86, 317.46°)
OKLaboklab(38.76% 0.1022 -0.1124)
OKLCHoklch(38.76% 0.152 312.3)
XYZxyz(8.9642, 5.0015, 19.8912)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F217D #3F7D21
analogous
#31217D #5F217D #7D216D
triadic
#5F217D #7D5F21 #217D5F
tetradic
#5F217D #7D3121 #3F7D21 #216D7D
square
#5F217D #7D3121 #3F7D21 #216D7D
split-complementary
#5F217D #6D7D21 #217D31
monochromatic
#15071C #3A144D #5F217D #842EAD #A349CF

Accessibility & contrast

On white

10.50
#5F217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F217D
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F217D#FFFFFF#000000##FFFFFF
##5F217D1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#17407B
Tritanopia (blue-blind)
#5C354D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f217d;
/* rgb */ color: rgb(95, 33, 125);
/* oklch */ color: oklch(38.8% 0.152 312.3);
Tailwind
colors: {
  custom: {
    50: '#9062a3',
    500: '#5f217d',
    950: '#000000',
  },
}
SCSS
$custom: #5f217d;
$custom-light: #9062a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f217d",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 280.435,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38762,
    "c": 0.15194,
    "h": 312.3
  },
  "luminance": 0.05001
}

Semantic roles & 50–950 ramp

primary
#5F217D
secondary
#6BB04A
accent
#E14679
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F217D

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

Preview Lab → · Contrast checker → · Palette generator →

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