#5F1866#5F1866

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

Color values

HEX#5F1866
RGBrgb(95, 24, 102)
HSLhsl(295, 62%, 25%)
HSVhsv(295, 76%, 40%)
CMYKcmyk(6.9%, 76.5%, 0%, 60%)
CIE-LABlab(23.82, 42.27, -29.71)
CIE-LCHlch(23.82, 51.67, 324.90°)
OKLaboklab(36.18% 0.1141 -0.0828)
OKLCHoklch(36.18% 0.141 324)
XYZxyz(7.4440, 4.0459, 12.9566)
Luminance0.0404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1866 #1F6618
analogous
#381866 #5F1866 #661846
triadic
#5F1866 #665F18 #18665F
tetradic
#5F1866 #663818 #1F6618 #184666
square
#5F1866 #663818 #1F6618 #184666
split-complementary
#5F1866 #466618 #186638
monochromatic
#170619 #310C34 #5F1866 #8D2498 #BB2FC9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1866#FFFFFF#000000##FFFFFF
##5F18661.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)
#003368
Deuteranopia (green-blind)
#263C64
Tritanopia (blue-blind)
#61263D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1866;
/* rgb */ color: rgb(95, 24, 102);
/* oklch */ color: oklch(36.2% 0.141 324.0);
Tailwind
colors: {
  custom: {
    50: '#8f5d92',
    500: '#5f1866',
    950: '#000000',
  },
}
SCSS
$custom: #5f1866;
$custom-light: #8f5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1866",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 102
  },
  "hsl": {
    "h": 294.615,
    "s": 61.905,
    "l": 24.706
  },
  "oklch": {
    "l": 0.36175,
    "c": 0.14098,
    "h": 324
  },
  "luminance": 0.04045
}

Semantic roles & 50–950 ramp

primary
#5F1866
secondary
#469C3E
accent
#E54351
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1866

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

Preview Lab → · Contrast checker → · Palette generator →

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