#5F1977#5F1977

#5F1977 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.156 H 315.7°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5F1977
RGBrgb(95, 25, 119)
HSLhsl(285, 65%, 28%)
HSVhsv(285, 79%, 47%)
CMYKcmyk(20.2%, 79%, 0%, 53.3%)
CIE-LABlab(25.14, 45.36, -38.57)
CIE-LCHlch(25.14, 59.54, 319.63°)
OKLaboklab(37.49% 0.1113 -0.1087)
OKLCHoklch(37.49% 0.156 315.7)
XYZxyz(8.3962, 4.4604, 17.8679)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1977 #317719
analogous
#301977 #5F1977 #771960
triadic
#5F1977 #775F19 #19775F
tetradic
#5F1977 #773019 #317719 #196077
square
#5F1977 #773019 #317719 #196077
split-complementary
#5F1977 #607719 #197730
monochromatic
#140519 #370E44 #5F1977 #8724AA #AC36D5

Accessibility & contrast

On white

11.10
#5F1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1977
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1977#FFFFFF#000000##FFFFFF
##5F19771.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#173D75
Tritanopia (blue-blind)
#5D2E47
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1977;
/* rgb */ color: rgb(95, 25, 119);
/* oklch */ color: oklch(37.5% 0.156 315.7);
Tailwind
colors: {
  custom: {
    50: '#905e9f',
    500: '#5f1977',
    950: '#000000',
  },
}
SCSS
$custom: #5f1977;
$custom-light: #905e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1977",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 284.681,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37487,
    "c": 0.15563,
    "h": 315.7
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#5F1977
secondary
#5CAC40
accent
#E8406B
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1977

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

Preview Lab → · Contrast checker → · Palette generator →

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