#5F1677#5F1677

#5F1677 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.159 H 315.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#5F1677
RGBrgb(95, 22, 119)
HSLhsl(285, 69%, 28%)
HSVhsv(285, 82%, 47%)
CMYKcmyk(20.2%, 81.5%, 0%, 53.3%)
CIE-LABlab(24.76, 46.45, -39.18)
CIE-LCHlch(24.76, 60.76, 319.85°)
OKLaboklab(37.22% 0.1141 -0.1105)
OKLCHoklch(37.22% 0.159 315.9)
XYZxyz(8.3355, 4.3390, 17.8476)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1677 #2E7716
analogous
#2F1677 #5F1677 #77165E
triadic
#5F1677 #775F16 #16775F
tetradic
#5F1677 #772F16 #2E7716 #165E77
square
#5F1677 #772F16 #2E7716 #165E77
split-complementary
#5F1677 #5E7716 #16772F
monochromatic
#15051A #360C43 #5F1677 #8820AB #AF2FD9

Accessibility & contrast

On white

11.24
#5F1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F1677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1677
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1677#FFFFFF#000000##FFFFFF
##5F16771.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#143D75
Tritanopia (blue-blind)
#5D2D47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1677;
/* rgb */ color: rgb(95, 22, 119);
/* oklch */ color: oklch(37.2% 0.159 315.9);
Tailwind
colors: {
  custom: {
    50: '#905d9f',
    500: '#5f1677',
    950: '#000000',
  },
}
SCSS
$custom: #5f1677;
$custom-light: #905d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1677",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 285.155,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37221,
    "c": 0.15883,
    "h": 315.9
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

primary
#5F1677
secondary
#58AC3C
accent
#EC3C68
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1677

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

Preview Lab → · Contrast checker → · Palette generator →

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