#5F1670#5F1670

#5F1670 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.152 H 319.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#5F1670
RGBrgb(95, 22, 112)
HSLhsl(289, 67%, 26%)
HSVhsv(289, 80%, 44%)
CMYKcmyk(15.2%, 80.4%, 0%, 56.1%)
CIE-LABlab(24.25, 45.00, -35.52)
CIE-LCHlch(24.25, 57.33, 321.72°)
OKLaboklab(36.7% 0.1152 -0.0998)
OKLCHoklch(36.7% 0.152 319.1)
XYZxyz(7.9305, 4.1770, 15.7146)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1670 #277016
analogous
#321670 #5F1670 #701654
triadic
#5F1670 #705F16 #16705F
tetradic
#5F1670 #703216 #277016 #165470
square
#5F1670 #703216 #277016 #165470
split-complementary
#5F1670 #547016 #167032
monochromatic
#16051A #340C3D #5F1670 #8A20A3 #B52BD5

Accessibility & contrast

On white

11.44
#5F1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1670
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1670#FFFFFF#000000##FFFFFF
##5F16701.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#1D3C6E
Tritanopia (blue-blind)
#5F2943
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1670;
/* rgb */ color: rgb(95, 22, 112);
/* oklch */ color: oklch(36.7% 0.152 319.1);
Tailwind
colors: {
  custom: {
    50: '#905d9a',
    500: '#5f1670',
    950: '#000000',
  },
}
SCSS
$custom: #5f1670;
$custom-light: #905d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1670",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 288.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36696,
    "c": 0.15238,
    "h": 319.1
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#5F1670
secondary
#50A63C
accent
#EA3E5E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1670

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

Preview Lab → · Contrast checker → · Palette generator →

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