#5F1774#5F1774

#5F1774 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.155 H 317.2°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#5F1774
RGBrgb(95, 23, 116)
HSLhsl(286, 67%, 27%)
HSVhsv(286, 80%, 45%)
CMYKcmyk(18.1%, 80.2%, 0%, 54.5%)
CIE-LABlab(24.66, 45.47, -37.42)
CIE-LCHlch(24.66, 58.89, 320.55°)
OKLaboklab(37.08% 0.1137 -0.1054)
OKLCHoklch(37.08% 0.155 317.2)
XYZxyz(8.1776, 4.3070, 16.9202)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1774 #2C7417
analogous
#311774 #5F1774 #74175A
triadic
#5F1774 #745F17 #17745F
tetradic
#5F1774 #743117 #2C7417 #175A74
square
#5F1774 #743117 #2C7417 #175A74
split-complementary
#5F1774 #5A7417 #177431
monochromatic
#15051A #350D41 #5F1774 #8921A7 #B030D6

Accessibility & contrast

On white

11.28
#5F1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1774
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1774#FFFFFF#000000##FFFFFF
##5F17741.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#193D72
Tritanopia (blue-blind)
#5E2C45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1774;
/* rgb */ color: rgb(95, 23, 116);
/* oklch */ color: oklch(37.1% 0.155 317.2);
Tailwind
colors: {
  custom: {
    50: '#905d9d',
    500: '#5f1774',
    950: '#000000',
  },
}
SCSS
$custom: #5f1774;
$custom-light: #905d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1774",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 286.452,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3708,
    "c": 0.155,
    "h": 317.2
  },
  "luminance": 0.04307
}

Semantic roles & 50–950 ramp

primary
#5F1774
secondary
#56A93D
accent
#EA3E65
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1774

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

Preview Lab → · Contrast checker → · Palette generator →

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