#5F217A#5F217A

#5F217A is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.5% C 0.149 H 313.6°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5F217A
RGBrgb(95, 33, 122)
HSLhsl(282, 57%, 30%)
HSVhsv(282, 73%, 48%)
CMYKcmyk(22.1%, 73%, 0%, 52.2%)
CIE-LABlab(26.52, 42.70, -38.24)
CIE-LCHlch(26.52, 57.32, 318.15°)
OKLaboklab(38.54% 0.1026 -0.1079)
OKLCHoklch(38.54% 0.149 313.6)
XYZxyz(8.7754, 4.9260, 18.8971)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F217A #3C7A21
analogous
#33217A #5F217A #7A2168
triadic
#5F217A #7A5F21 #217A5F
tetradic
#5F217A #7A3321 #3C7A21 #21687A
square
#5F217A #7A3321 #3C7A21 #21687A
split-complementary
#5F217A #687A21 #217A33
monochromatic
#14071A #39144A #5F217A #852EAA #A548CD

Accessibility & contrast

On white

10.58
#5F217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5F217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F217A
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F217A#FFFFFF#000000##FFFFFF
##5F217A1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#1B4078
Tritanopia (blue-blind)
#5C344B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f217a;
/* rgb */ color: rgb(95, 33, 122);
/* oklch */ color: oklch(38.5% 0.149 313.6);
Tailwind
colors: {
  custom: {
    50: '#9062a1',
    500: '#5f217a',
    950: '#000000',
  },
}
SCSS
$custom: #5f217a;
$custom-light: #9062a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f217a",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 281.798,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38539,
    "c": 0.14886,
    "h": 313.6
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#5F217A
secondary
#68AD4A
accent
#E14776
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F217A

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

Preview Lab → · Contrast checker → · Palette generator →

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