#5F217B#5F217B

#5F217B is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.6% C 0.150 H 313.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5F217B
RGBrgb(95, 33, 123)
HSLhsl(281, 58%, 31%)
HSVhsv(281, 73%, 48%)
CMYKcmyk(22.8%, 73.2%, 0%, 51.8%)
CIE-LABlab(26.59, 42.92, -38.76)
CIE-LCHlch(26.59, 57.83, 317.91°)
OKLaboklab(38.61% 0.1025 -0.1094)
OKLCHoklch(38.61% 0.15 313.1)
XYZxyz(8.8377, 4.9509, 19.2251)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F217B #3D7B21
analogous
#32217B #5F217B #7B216A
triadic
#5F217B #7B5F21 #217B5F
tetradic
#5F217B #7B3221 #3D7B21 #216A7B
square
#5F217B #7B3221 #3D7B21 #216A7B
split-complementary
#5F217B #6A7B21 #217B32
monochromatic
#14071A #3A144B #5F217B #842EAB #A448CE

Accessibility & contrast

On white

10.55
#5F217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F217B
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F217B#FFFFFF#000000##FFFFFF
##5F217B1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#5C344B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f217b;
/* rgb */ color: rgb(95, 33, 123);
/* oklch */ color: oklch(38.6% 0.150 313.1);
Tailwind
colors: {
  custom: {
    50: '#9062a2',
    500: '#5f217b',
    950: '#000000',
  },
}
SCSS
$custom: #5f217b;
$custom-light: #9062a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f217b",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 281.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38613,
    "c": 0.14988,
    "h": 313.1
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#5F217B
secondary
#69AE4A
accent
#E14777
background
#F9F6FA
surface
#F1EBF3
border
#CBC6CD
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5F217B

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

Preview Lab → · Contrast checker → · Palette generator →

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