#5F1868#5F1868

#5F1868 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.143 H 323.0°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#5F1868
RGBrgb(95, 24, 104)
HSLhsl(293, 63%, 25%)
HSVhsv(293, 77%, 41%)
CMYKcmyk(8.7%, 76.9%, 0%, 59.2%)
CIE-LABlab(23.95, 42.67, -30.81)
CIE-LCHlch(23.95, 52.63, 324.17°)
OKLaboklab(36.31% 0.114 -0.086)
OKLCHoklch(36.31% 0.143 323)
XYZxyz(7.5444, 4.0861, 13.4853)
Luminance0.0409 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1868 #216818
analogous
#371868 #5F1868 #681849
triadic
#5F1868 #685F18 #18685F
tetradic
#5F1868 #683718 #216818 #184968
square
#5F1868 #683718 #216818 #184968
split-complementary
#5F1868 #496818 #186837
monochromatic
#170619 #320D36 #5F1868 #8C239A #BA2FCB

Accessibility & contrast

On white

11.56
#5F1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1868
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1868#FFFFFF#000000##FFFFFF
##5F18681.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346A
Deuteranopia (green-blind)
#253C66
Tritanopia (blue-blind)
#60273E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1868;
/* rgb */ color: rgb(95, 24, 104);
/* oklch */ color: oklch(36.3% 0.143 323.0);
Tailwind
colors: {
  custom: {
    50: '#8f5d93',
    500: '#5f1868',
    950: '#000000',
  },
}
SCSS
$custom: #5f1868;
$custom-light: #8f5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1868",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 293.25,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36311,
    "c": 0.1428,
    "h": 323
  },
  "luminance": 0.04086
}

Semantic roles & 50–950 ramp

primary
#5F1868
secondary
#499E3E
accent
#E64255
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1868

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

Preview Lab → · Contrast checker → · Palette generator →

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