#5F2071#5F2071

#5F2071 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.141 H 317.8°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#5F2071
RGBrgb(95, 32, 113)
HSLhsl(287, 56%, 28%)
HSVhsv(287, 72%, 44%)
CMYKcmyk(15.9%, 71.7%, 0%, 55.7%)
CIE-LABlab(25.74, 41.17, -33.77)
CIE-LCHlch(25.74, 53.24, 320.64°)
OKLaboklab(37.78% 0.1045 -0.0947)
OKLCHoklch(37.78% 0.141 317.8)
XYZxyz(8.2160, 4.6585, 16.0860)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2071 #327120
analogous
#362071 #5F2071 #71205A
triadic
#5F2071 #715F20 #20715F
tetradic
#5F2071 #713620 #327120 #205A71
square
#5F2071 #713620 #327120 #205A71
split-complementary
#5F2071 #5A7120 #207136
monochromatic
#140718 #371241 #5F2071 #872EA1 #AB42C9

Accessibility & contrast

On white

10.87
#5F2071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F2071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2071
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2071#FFFFFF#000000##FFFFFF
##5F20711.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#233F6F
Tritanopia (blue-blind)
#5E2F46
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f2071;
/* rgb */ color: rgb(95, 32, 113);
/* oklch */ color: oklch(37.8% 0.141 317.8);
Tailwind
colors: {
  custom: {
    50: '#8f619a',
    500: '#5f2071',
    950: '#000000',
  },
}
SCSS
$custom: #5f2071;
$custom-light: #8f619a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2071",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 113
  },
  "hsl": {
    "h": 286.667,
    "s": 55.862,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.14105,
    "h": 317.8
  },
  "luminance": 0.04658
}

Semantic roles & 50–950 ramp

primary
#5F2071
secondary
#5DA548
accent
#DF496A
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F2071

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

Preview Lab → · Contrast checker → · Palette generator →

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