#5F1070#5F1070

#5F1070 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.158 H 319.4°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#5F1070
RGBrgb(95, 16, 112)
HSLhsl(289, 75%, 25%)
HSVhsv(289, 86%, 44%)
CMYKcmyk(15.2%, 85.7%, 0%, 56.1%)
CIE-LABlab(23.58, 46.93, -36.58)
CIE-LCHlch(23.58, 59.50, 322.06°)
OKLaboklab(36.23% 0.1202 -0.1029)
OKLCHoklch(36.23% 0.158 319.4)
XYZxyz(7.8289, 3.9737, 15.6807)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1070 #217010
analogous
#2F1070 #5F1070 #701051
triadic
#5F1070 #705F10 #10705F
tetradic
#5F1070 #702F10 #217010 #105170
square
#5F1070 #702F10 #217010 #105170
split-complementary
#5F1070 #517010 #10702F
monochromatic
#17041B #32083A #5F1070 #8C18A6 #BA1FDB

Accessibility & contrast

On white

11.70
#5F1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5F1070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1070
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1070#FFFFFF#000000##FFFFFF
##5F10701.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#193B6E
Tritanopia (blue-blind)
#5F2641
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1070;
/* rgb */ color: rgb(95, 16, 112);
/* oklch */ color: oklch(36.2% 0.158 319.4);
Tailwind
colors: {
  custom: {
    50: '#905a9a',
    500: '#5f1070',
    950: '#000000',
  },
}
SCSS
$custom: #5f1070;
$custom-light: #905a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1070",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 289.375,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36228,
    "c": 0.15822,
    "h": 319.4
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#5F1070
secondary
#49A834
accent
#F23657
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1070

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

Preview Lab → · Contrast checker → · Palette generator →

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