#5F1374#5F1374

#5F1374 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.159 H 317.4°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#5F1374
RGBrgb(95, 19, 116)
HSLhsl(287, 72%, 26%)
HSVhsv(287, 84%, 45%)
CMYKcmyk(18.1%, 83.6%, 0%, 54.5%)
CIE-LABlab(24.19, 46.82, -38.17)
CIE-LCHlch(24.19, 60.41, 320.81°)
OKLaboklab(36.75% 0.1172 -0.1075)
OKLCHoklch(36.75% 0.159 317.4)
XYZxyz(8.1041, 4.1600, 16.8957)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1374 #287413
analogous
#2F1374 #5F1374 #741359
triadic
#5F1374 #745F13 #13745F
tetradic
#5F1374 #742F13 #287413 #135974
square
#5F1374 #742F13 #287413 #135974
split-complementary
#5F1374 #597413 #13742F
monochromatic
#16041A #340A3F #5F1374 #8A1CA9 #B426DB

Accessibility & contrast

On white

11.46
#5F1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F1374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1374
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1374#FFFFFF#000000##FFFFFF
##5F13741.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#163C72
Tritanopia (blue-blind)
#5E2A44
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1374;
/* rgb */ color: rgb(95, 19, 116);
/* oklch */ color: oklch(36.8% 0.159 317.4);
Tailwind
colors: {
  custom: {
    50: '#905c9d',
    500: '#5f1374',
    950: '#000000',
  },
}
SCSS
$custom: #5f1374;
$custom-light: #905c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1374",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 287.01,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3675,
    "c": 0.15904,
    "h": 317.4
  },
  "luminance": 0.0416
}

Semantic roles & 50–950 ramp

primary
#5F1374
secondary
#51AA38
accent
#EF3960
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1374

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

Preview Lab → · Contrast checker → · Palette generator →

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