#5F1375#5F1375

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

Color values

HEX#5F1375
RGBrgb(95, 19, 117)
HSLhsl(287, 72%, 27%)
HSVhsv(287, 84%, 46%)
CMYKcmyk(18.8%, 83.8%, 0%, 54.1%)
CIE-LABlab(24.27, 47.03, -38.69)
CIE-LCHlch(24.27, 60.90, 320.55°)
OKLaboklab(36.83% 0.117 -0.1091)
OKLCHoklch(36.83% 0.16 317)
XYZxyz(8.1626, 4.1834, 17.2037)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1375 #297513
analogous
#2E1375 #5F1375 #75135A
triadic
#5F1375 #755F13 #13755F
tetradic
#5F1375 #752E13 #297513 #135A75
square
#5F1375 #752E13 #297513 #135A75
split-complementary
#5F1375 #5A7513 #13752E
monochromatic
#15041A #340A40 #5F1375 #8A1CAA #B327DC

Accessibility & contrast

On white

11.43
#5F1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1375
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1375#FFFFFF#000000##FFFFFF
##5F13751.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#143C73
Tritanopia (blue-blind)
#5E2A45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1375;
/* rgb */ color: rgb(95, 19, 117);
/* oklch */ color: oklch(36.8% 0.160 317.0);
Tailwind
colors: {
  custom: {
    50: '#905c9d',
    500: '#5f1375',
    950: '#000000',
  },
}
SCSS
$custom: #5f1375;
$custom-light: #905c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1375",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 286.531,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36827,
    "c": 0.15994,
    "h": 317
  },
  "luminance": 0.04183
}

Semantic roles & 50–950 ramp

primary
#5F1375
secondary
#52AB38
accent
#EF3962
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1375

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

Preview Lab → · Contrast checker → · Palette generator →

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