#5F1766#5F1766

#5F1766 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.142 H 324.1°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#5F1766
RGBrgb(95, 23, 102)
HSLhsl(295, 63%, 25%)
HSVhsv(295, 77%, 40%)
CMYKcmyk(6.9%, 77.5%, 0%, 60%)
CIE-LABlab(23.69, 42.65, -29.93)
CIE-LCHlch(23.69, 52.10, 324.95°)
OKLaboklab(36.08% 0.1151 -0.0834)
OKLCHoklch(36.08% 0.142 324.1)
XYZxyz(7.4238, 4.0055, 12.9499)
Luminance0.0401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1766 #1E6617
analogous
#381766 #5F1766 #661745
triadic
#5F1766 #665F17 #17665F
tetradic
#5F1766 #663817 #1E6617 #174566
square
#5F1766 #663817 #1E6617 #174566
split-complementary
#5F1766 #456617 #176638
monochromatic
#170619 #300C34 #5F1766 #8E2298 #BC2ECA

Accessibility & contrast

On white

11.66
#5F1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5F1766 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1766
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1766#FFFFFF#000000##FFFFFF
##5F17661.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#263B64
Tritanopia (blue-blind)
#61253D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1766;
/* rgb */ color: rgb(95, 23, 102);
/* oklch */ color: oklch(36.1% 0.142 324.1);
Tailwind
colors: {
  custom: {
    50: '#8f5d92',
    500: '#5f1766',
    950: '#000000',
  },
}
SCSS
$custom: #5f1766;
$custom-light: #8f5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1766",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 294.684,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.3608,
    "c": 0.14218,
    "h": 324.1
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#5F1766
secondary
#459C3C
accent
#E64250
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1766

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

Preview Lab → · Contrast checker → · Palette generator →

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