#5F2A71#5F2A71

#5F2A71 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.1% C 0.126 H 316.7°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#5F2A71
RGBrgb(95, 42, 113)
HSLhsl(285, 46%, 30%)
HSVhsv(285, 63%, 44%)
CMYKcmyk(15.9%, 62.8%, 0%, 55.7%)
CIE-LABlab(27.52, 36.24, -30.92)
CIE-LCHlch(27.52, 47.64, 319.53°)
OKLaboklab(39.07% 0.0917 -0.0865)
OKLCHoklch(39.07% 0.126 316.7)
XYZxyz(8.5275, 5.2814, 16.1898)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2A71 #3C712A
analogous
#3C2A71 #5F2A71 #712A5F
triadic
#5F2A71 #715F2A #2A715F
tetradic
#5F2A71 #713C2A #3C712A #2A5F71
square
#5F2A71 #713C2A #3C712A #2A5F71
split-complementary
#5F2A71 #5F712A #2A713C
monochromatic
#140918 #391944 #5F2A71 #853B9E #A555C0

Accessibility & contrast

On white

10.21
#5F2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2A71
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2A71#FFFFFF#000000##FFFFFF
##5F2A711.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#2B436F
Tritanopia (blue-blind)
#5E3649
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f2a71;
/* rgb */ color: rgb(95, 42, 113);
/* oklch */ color: oklch(39.1% 0.126 316.7);
Tailwind
colors: {
  custom: {
    50: '#8f679a',
    500: '#5f2a71',
    950: '#000000',
  },
}
SCSS
$custom: #5f2a71;
$custom-light: #8f679a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2a71",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 284.789,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39067,
    "c": 0.126,
    "h": 316.7
  },
  "luminance": 0.05281
}

Semantic roles & 50–950 ramp

primary
#5F2A71
secondary
#68A354
accent
#D55274
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E

Preview Lab

Preview with #5F2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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