#5F1071#5F1071

#5F1071 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.159 H 319.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#5F1071
RGBrgb(95, 16, 113)
HSLhsl(289, 75%, 25%)
HSVhsv(289, 86%, 44%)
CMYKcmyk(15.9%, 85.8%, 0%, 55.7%)
CIE-LABlab(23.66, 47.12, -37.11)
CIE-LCHlch(23.66, 59.98, 321.78°)
OKLaboklab(36.3% 0.12 -0.1044)
OKLCHoklch(36.3% 0.159 319)
XYZxyz(7.8848, 3.9961, 15.9756)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1071 #227110
analogous
#2E1071 #5F1071 #711052
triadic
#5F1071 #715F10 #10715F
tetradic
#5F1071 #712E10 #227110 #105271
square
#5F1071 #712E10 #227110 #105271
split-complementary
#5F1071 #527110 #10712E
monochromatic
#17041B #32083B #5F1071 #8C18A7 #B91FDC

Accessibility & contrast

On white

11.67
#5F1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5F1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1071
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1071#FFFFFF#000000##FFFFFF
##5F10711.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#183B6F
Tritanopia (blue-blind)
#5F2742
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1071;
/* rgb */ color: rgb(95, 16, 113);
/* oklch */ color: oklch(36.3% 0.159 319.0);
Tailwind
colors: {
  custom: {
    50: '#905b9a',
    500: '#5f1071',
    950: '#000000',
  },
}
SCSS
$custom: #5f1071;
$custom-light: #905b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1071",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 288.866,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.36304,
    "c": 0.15909,
    "h": 319
  },
  "luminance": 0.03996
}

Semantic roles & 50–950 ramp

primary
#5F1071
secondary
#4AA934
accent
#F23659
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1071

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

Preview Lab → · Contrast checker → · Palette generator →

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