#5F1863#5F1863

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

Color values

HEX#5F1863
RGBrgb(95, 24, 99)
HSLhsl(297, 61%, 24%)
HSVhsv(297, 76%, 39%)
CMYKcmyk(4%, 75.8%, 0%, 61.2%)
CIE-LABlab(23.63, 41.70, -28.06)
CIE-LCHlch(23.63, 50.26, 326.06°)
OKLaboklab(35.98% 0.1142 -0.078)
OKLCHoklch(35.98% 0.138 325.7)
XYZxyz(7.2979, 3.9875, 12.1872)
Luminance0.0399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1863 #1C6318
analogous
#3A1863 #5F1863 #631842
triadic
#5F1863 #635F18 #18635F
tetradic
#5F1863 #633A18 #1C6318 #184263
square
#5F1863 #633A18 #1C6318 #184263
split-complementary
#5F1863 #426318 #18633A
monochromatic
#180619 #300C32 #5F1863 #8E2494 #BE30C6

Accessibility & contrast

On white

11.68
#5F1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1863
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1863#FFFFFF#000000##FFFFFF
##5F18631.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053365
Deuteranopia (green-blind)
#283B61
Tritanopia (blue-blind)
#61243C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1863;
/* rgb */ color: rgb(95, 24, 99);
/* oklch */ color: oklch(36.0% 0.138 325.7);
Tailwind
colors: {
  custom: {
    50: '#8f5d90',
    500: '#5f1863',
    950: '#000000',
  },
}
SCSS
$custom: #5f1863;
$custom-light: #8f5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1863",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 296.8,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35975,
    "c": 0.13827,
    "h": 325.7
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#5F1863
secondary
#42993E
accent
#E4444C
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D050C
muted
#7E797D

Preview Lab

Preview with #5F1863

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

Preview Lab → · Contrast checker → · Palette generator →

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