#5F1776#5F1776

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

Color values

HEX#5F1776
RGBrgb(95, 23, 118)
HSLhsl(285, 67%, 28%)
HSVhsv(285, 81%, 46%)
CMYKcmyk(19.5%, 80.5%, 0%, 53.7%)
CIE-LABlab(24.81, 45.89, -38.46)
CIE-LCHlch(24.81, 59.87, 320.03°)
OKLaboklab(37.23% 0.1134 -0.1084)
OKLCHoklch(37.23% 0.157 316.3)
XYZxyz(8.2952, 4.3540, 17.5395)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1776 #2E7617
analogous
#301776 #5F1776 #76175D
triadic
#5F1776 #765F17 #17765F
tetradic
#5F1776 #763017 #2E7617 #175D76
square
#5F1776 #763017 #2E7617 #175D76
split-complementary
#5F1776 #5D7617 #177630
monochromatic
#15051A #360D43 #5F1776 #8821A9 #AF31D7

Accessibility & contrast

On white

11.23
#5F1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1776
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1776#FFFFFF#000000##FFFFFF
##5F17761.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#163D74
Tritanopia (blue-blind)
#5D2D46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1776;
/* rgb */ color: rgb(95, 23, 118);
/* oklch */ color: oklch(37.2% 0.157 316.3);
Tailwind
colors: {
  custom: {
    50: '#905d9e',
    500: '#5f1776',
    950: '#000000',
  },
}
SCSS
$custom: #5f1776;
$custom-light: #905d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1776",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 285.474,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37231,
    "c": 0.15686,
    "h": 316.3
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#5F1776
secondary
#58AB3E
accent
#EA3E67
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1776

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

Preview Lab → · Contrast checker → · Palette generator →

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