#5F2174#5F2174

#5F2174 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.143 H 316.3°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5F2174
RGBrgb(95, 33, 116)
HSLhsl(285, 56%, 29%)
HSVhsv(285, 72%, 45%)
CMYKcmyk(18.1%, 71.6%, 0%, 54.5%)
CIE-LABlab(26.10, 41.37, -35.10)
CIE-LCHlch(26.10, 54.25, 319.68°)
OKLaboklab(38.11% 0.1031 -0.0986)
OKLCHoklch(38.11% 0.143 316.3)
XYZxyz(8.4151, 4.7819, 16.9993)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2174 #367421
analogous
#362174 #5F2174 #742160
triadic
#5F2174 #745F21 #21745F
tetradic
#5F2174 #743621 #367421 #216074
square
#5F2174 #743621 #367421 #216074
split-complementary
#5F2174 #607421 #217436
monochromatic
#140718 #381344 #5F2174 #862FA4 #A945CA

Accessibility & contrast

On white

10.73
#5F2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5F2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2174
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2174#FFFFFF#000000##FFFFFF
##5F21741.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#214072
Tritanopia (blue-blind)
#5E3148
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f2174;
/* rgb */ color: rgb(95, 33, 116);
/* oklch */ color: oklch(38.1% 0.143 316.3);
Tailwind
colors: {
  custom: {
    50: '#8f629c',
    500: '#5f2174',
    950: '#000000',
  },
}
SCSS
$custom: #5f2174;
$custom-light: #8f629c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2174",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 284.819,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38106,
    "c": 0.14271,
    "h": 316.3
  },
  "luminance": 0.04782
}

Semantic roles & 50–950 ramp

primary
#5F2174
secondary
#61A749
accent
#DF496F
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F2174

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

Preview Lab → · Contrast checker → · Palette generator →

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