#5F1778#5F1778

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

Color values

HEX#5F1778
RGBrgb(95, 23, 120)
HSLhsl(285, 68%, 28%)
HSVhsv(285, 81%, 47%)
CMYKcmyk(20.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(24.96, 46.31, -39.50)
CIE-LCHlch(24.96, 60.86, 319.54°)
OKLaboklab(37.38% 0.113 -0.1115)
OKLCHoklch(37.38% 0.159 315.4)
XYZxyz(8.4153, 4.4021, 18.1721)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1778 #307817
analogous
#2E1778 #5F1778 #781760
triadic
#5F1778 #785F17 #17785F
tetradic
#5F1778 #782E17 #307817 #176078
square
#5F1778 #782E17 #307817 #176078
split-complementary
#5F1778 #607817 #17782E
monochromatic
#14051A #360D45 #5F1778 #8821AB #AD32D8

Accessibility & contrast

On white

11.17
#5F1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1778
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1778#FFFFFF#000000##FFFFFF
##5F17781.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#133D76
Tritanopia (blue-blind)
#5D2D47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1778;
/* rgb */ color: rgb(95, 23, 120);
/* oklch */ color: oklch(37.4% 0.159 315.4);
Tailwind
colors: {
  custom: {
    50: '#905ea0',
    500: '#5f1778',
    950: '#000000',
  },
}
SCSS
$custom: #5f1778;
$custom-light: #905ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1778",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 284.536,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37384,
    "c": 0.15873,
    "h": 315.4
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#5F1778
secondary
#5AAD3E
accent
#EB3D6A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1778

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

Preview Lab → · Contrast checker → · Palette generator →

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