#5F1877#5F1877

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

Color values

HEX#5F1877
RGBrgb(95, 24, 119)
HSLhsl(285, 66%, 28%)
HSVhsv(285, 80%, 47%)
CMYKcmyk(20.2%, 79.8%, 0%, 53.3%)
CIE-LABlab(25.01, 45.73, -38.78)
CIE-LCHlch(25.01, 59.96, 319.71°)
OKLaboklab(37.4% 0.1123 -0.1093)
OKLCHoklch(37.4% 0.157 315.8)
XYZxyz(8.3752, 4.4184, 17.8609)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1877 #307718
analogous
#2F1877 #5F1877 #77185F
triadic
#5F1877 #775F18 #18775F
tetradic
#5F1877 #772F18 #307718 #185F77
square
#5F1877 #772F18 #307718 #185F77
split-complementary
#5F1877 #5F7718 #18772F
monochromatic
#140519 #360E44 #5F1877 #8822AA #AD33D6

Accessibility & contrast

On white

11.15
#5F1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1877
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1877#FFFFFF#000000##FFFFFF
##5F18771.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1877;
/* rgb */ color: rgb(95, 24, 119);
/* oklch */ color: oklch(37.4% 0.157 315.8);
Tailwind
colors: {
  custom: {
    50: '#905e9f',
    500: '#5f1877',
    950: '#000000',
  },
}
SCSS
$custom: #5f1877;
$custom-light: #905e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1877",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 284.842,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.15672,
    "h": 315.8
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#5F1877
secondary
#5AAC3F
accent
#E93E6A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1877

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

Preview Lab → · Contrast checker → · Palette generator →

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