#5F1773#5F1773

#5F1773 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.154 H 317.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#5F1773
RGBrgb(95, 23, 115)
HSLhsl(287, 67%, 27%)
HSVhsv(287, 80%, 45%)
CMYKcmyk(17.4%, 80%, 0%, 54.9%)
CIE-LABlab(24.59, 45.26, -36.90)
CIE-LCHlch(24.59, 58.39, 320.81°)
OKLaboklab(37% 0.1138 -0.1038)
OKLCHoklch(37% 0.154 317.6)
XYZxyz(8.1198, 4.2839, 16.6155)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1773 #2B7317
analogous
#311773 #5F1773 #731759
triadic
#5F1773 #735F17 #17735F
tetradic
#5F1773 #733117 #2B7317 #175973
square
#5F1773 #733117 #2B7317 #175973
split-complementary
#5F1773 #597317 #177331
monochromatic
#15051A #350D40 #5F1773 #8921A6 #B12FD5

Accessibility & contrast

On white

11.31
#5F1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1773
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1773#FFFFFF#000000##FFFFFF
##5F17731.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#1A3D71
Tritanopia (blue-blind)
#5E2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1773;
/* rgb */ color: rgb(95, 23, 115);
/* oklch */ color: oklch(37.0% 0.154 317.6);
Tailwind
colors: {
  custom: {
    50: '#905d9c',
    500: '#5f1773',
    950: '#000000',
  },
}
SCSS
$custom: #5f1773;
$custom-light: #905d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1773",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 286.957,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.37005,
    "c": 0.15407,
    "h": 317.6
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#5F1773
secondary
#55A93D
accent
#EA3E63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1773

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

Preview Lab → · Contrast checker → · Palette generator →

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