#5F1864#5F1864

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

Color values

HEX#5F1864
RGBrgb(95, 24, 100)
HSLhsl(296, 61%, 24%)
HSVhsv(296, 76%, 39%)
CMYKcmyk(5%, 76%, 0%, 60.8%)
CIE-LABlab(23.69, 41.89, -28.61)
CIE-LCHlch(23.69, 50.73, 325.67°)
OKLaboklab(36.04% 0.1142 -0.0796)
OKLCHoklch(36.04% 0.139 325.1)
XYZxyz(7.3460, 4.0067, 12.4406)
Luminance0.0401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1864 #1D6418
analogous
#391864 #5F1864 #641843
triadic
#5F1864 #645F18 #18645F
tetradic
#5F1864 #643918 #1D6418 #184364
square
#5F1864 #643918 #1D6418 #184364
split-complementary
#5F1864 #436418 #186439
monochromatic
#170619 #300C33 #5F1864 #8E2495 #BD30C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1864#FFFFFF#000000##FFFFFF
##5F18641.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)
#033366
Deuteranopia (green-blind)
#283B62
Tritanopia (blue-blind)
#61253C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1864;
/* rgb */ color: rgb(95, 24, 100);
/* oklch */ color: oklch(36.0% 0.139 325.1);
Tailwind
colors: {
  custom: {
    50: '#8f5d90',
    500: '#5f1864',
    950: '#000000',
  },
}
SCSS
$custom: #5f1864;
$custom-light: #8f5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1864",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 296.053,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.36041,
    "c": 0.13917,
    "h": 325.1
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#5F1864
secondary
#449A3E
accent
#E4434E
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F1864

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

Preview Lab → · Contrast checker → · Palette generator →

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