#5F1777#5F1777

#5F1777 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.158 H 315.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5F1777
RGBrgb(95, 23, 119)
HSLhsl(285, 68%, 28%)
HSVhsv(285, 81%, 47%)
CMYKcmyk(20.2%, 80.7%, 0%, 53.3%)
CIE-LABlab(24.88, 46.10, -38.98)
CIE-LCHlch(24.88, 60.37, 319.78°)
OKLaboklab(37.31% 0.1132 -0.1099)
OKLCHoklch(37.31% 0.158 315.8)
XYZxyz(8.3550, 4.3779, 17.8541)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1777 #2F7717
analogous
#2F1777 #5F1777 #77175F
triadic
#5F1777 #775F17 #17775F
tetradic
#5F1777 #772F17 #2F7717 #175F77
square
#5F1777 #772F17 #2F7717 #175F77
split-complementary
#5F1777 #5F7717 #17772F
monochromatic
#14051A #360D44 #5F1777 #8821AA #AE31D7

Accessibility & contrast

On white

11.20
#5F1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1777
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1777#FFFFFF#000000##FFFFFF
##5F17771.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1777;
/* rgb */ color: rgb(95, 23, 119);
/* oklch */ color: oklch(37.3% 0.158 315.8);
Tailwind
colors: {
  custom: {
    50: '#905d9f',
    500: '#5f1777',
    950: '#000000',
  },
}
SCSS
$custom: #5f1777;
$custom-light: #905d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1777",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 285,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37307,
    "c": 0.15779,
    "h": 315.8
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#5F1777
secondary
#59AC3E
accent
#EA3D69
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1777

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

Preview Lab → · Contrast checker → · Palette generator →

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