#5F1175#5F1175

#5F1175 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.162 H 317.1°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#5F1175
RGBrgb(95, 17, 117)
HSLhsl(287, 75%, 26%)
HSVhsv(287, 85%, 46%)
CMYKcmyk(18.8%, 85.5%, 0%, 54.1%)
CIE-LABlab(24.06, 47.64, -39.03)
CIE-LCHlch(24.06, 61.58, 320.67°)
OKLaboklab(36.68% 0.1185 -0.11)
OKLCHoklch(36.68% 0.162 317.1)
XYZxyz(8.1302, 4.1185, 17.1929)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1175 #277511
analogous
#2D1175 #5F1175 #751159
triadic
#5F1175 #755F11 #11755F
tetradic
#5F1175 #752D11 #277511 #115975
square
#5F1175 #752D11 #277511 #115975
split-complementary
#5F1175 #597511 #11752D
monochromatic
#16041B #340940 #5F1175 #8A19AA #B522DF

Accessibility & contrast

On white

11.52
#5F1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1175
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1175#FFFFFF#000000##FFFFFF
##5F11751.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#133B73
Tritanopia (blue-blind)
#5E2944
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1175;
/* rgb */ color: rgb(95, 17, 117);
/* oklch */ color: oklch(36.7% 0.162 317.1);
Tailwind
colors: {
  custom: {
    50: '#905b9d',
    500: '#5f1175',
    950: '#000000',
  },
}
SCSS
$custom: #5f1175;
$custom-light: #905b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1175",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 286.8,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3668,
    "c": 0.16173,
    "h": 317.1
  },
  "luminance": 0.04118
}

Semantic roles & 50–950 ramp

primary
#5F1175
secondary
#50AC36
accent
#F13760
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1175

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

Preview Lab → · Contrast checker → · Palette generator →

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