#5F2271#5F2271

#5F2271 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.138 H 317.6°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2271
RGBrgb(95, 34, 113)
HSLhsl(286, 54%, 29%)
HSVhsv(286, 70%, 44%)
CMYKcmyk(15.9%, 69.9%, 0%, 55.7%)
CIE-LABlab(26.07, 40.25, -33.24)
CIE-LCHlch(26.07, 52.20, 320.45°)
OKLaboklab(38.02% 0.1021 -0.0932)
OKLCHoklch(38.02% 0.138 317.6)
XYZxyz(8.2716, 4.7696, 16.1045)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2271 #347122
analogous
#382271 #5F2271 #71225C
triadic
#5F2271 #715F22 #22715F
tetradic
#5F2271 #713822 #347122 #225C71
square
#5F2271 #713822 #347122 #225C71
split-complementary
#5F2271 #5C7122 #227138
monochromatic
#140718 #371442 #5F2271 #8730A0 #AA46C7

Accessibility & contrast

On white

10.75
#5F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2271
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2271#FFFFFF#000000##FFFFFF
##5F22711.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013A73
Deuteranopia (green-blind)
#25406F
Tritanopia (blue-blind)
#5E3146
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f2271;
/* rgb */ color: rgb(95, 34, 113);
/* oklch */ color: oklch(38.0% 0.138 317.6);
Tailwind
colors: {
  custom: {
    50: '#8f629a',
    500: '#5f2271',
    950: '#000000',
  },
}
SCSS
$custom: #5f2271;
$custom-light: #8f629a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2271",
  "rgb": {
    "r": 95,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 286.329,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38016,
    "c": 0.13824,
    "h": 317.6
  },
  "luminance": 0.04769
}

Semantic roles & 50–950 ramp

primary
#5F2271
secondary
#5FA44A
accent
#DD4B6C
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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