#5F1768#5F1768

#5F1768 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.144 H 323.0°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#5F1768
RGBrgb(95, 23, 104)
HSLhsl(293, 64%, 25%)
HSVhsv(293, 78%, 41%)
CMYKcmyk(8.7%, 77.9%, 0%, 59.2%)
CIE-LABlab(23.82, 43.04, -31.02)
CIE-LCHlch(23.82, 53.06, 324.22°)
OKLaboklab(36.22% 0.115 -0.0866)
OKLCHoklch(36.22% 0.144 323)
XYZxyz(7.5242, 4.0456, 13.4786)
Luminance0.0404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1768 #206817
analogous
#361768 #5F1768 #681749
triadic
#5F1768 #685F17 #17685F
tetradic
#5F1768 #683617 #206817 #174968
square
#5F1768 #683617 #206817 #174968
split-complementary
#5F1768 #496817 #176836
monochromatic
#170619 #310C36 #5F1768 #8D229A #BB2DCC

Accessibility & contrast

On white

11.61
#5F1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5F1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1768
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1768#FFFFFF#000000##FFFFFF
##5F17681.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#243B66
Tritanopia (blue-blind)
#61263E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1768;
/* rgb */ color: rgb(95, 23, 104);
/* oklch */ color: oklch(36.2% 0.144 323.0);
Tailwind
colors: {
  custom: {
    50: '#8f5d93',
    500: '#5f1768',
    950: '#000000',
  },
}
SCSS
$custom: #5f1768;
$custom-light: #8f5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1768",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 293.333,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36216,
    "c": 0.14399,
    "h": 323
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#5F1768
secondary
#479E3D
accent
#E74153
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1768

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

Preview Lab → · Contrast checker → · Palette generator →

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