#5F1064#5F1064

#5F1064 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.4% C 0.148 H 325.4°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#5F1064
RGBrgb(95, 16, 100)
HSLhsl(296, 72%, 23%)
HSVhsv(296, 84%, 39%)
CMYKcmyk(5%, 84%, 0%, 60.8%)
CIE-LABlab(22.74, 44.63, -30.14)
CIE-LCHlch(22.74, 53.86, 325.97°)
OKLaboklab(35.36% 0.1218 -0.084)
OKLCHoklch(35.36% 0.148 325.4)
XYZxyz(7.2047, 3.7241, 12.3935)
Luminance0.0372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1064 #156410
analogous
#351064 #5F1064 #64103F
triadic
#5F1064 #645F10 #10645F
tetradic
#5F1064 #643510 #156410 #103F64
square
#5F1064 #643510 #156410 #103F64
split-complementary
#5F1064 #3F6410 #106435
monochromatic
#19041A #2D082F #5F1064 #911899 #C321CE

Accessibility & contrast

On white

12.04
#5F1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F1064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1064
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1064#FFFFFF#000000##FFFFFF
##5F10641.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#243962
Tritanopia (blue-blind)
#61203A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1064;
/* rgb */ color: rgb(95, 16, 100);
/* oklch */ color: oklch(35.4% 0.148 325.4);
Tailwind
colors: {
  custom: {
    50: '#905a90',
    500: '#5f1064',
    950: '#000000',
  },
}
SCSS
$custom: #5f1064;
$custom-light: #905a90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1064",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 296.429,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3536,
    "c": 0.14793,
    "h": 325.4
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#5F1064
secondary
#3A9D33
accent
#EF3944
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1064

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

Preview Lab → · Contrast checker → · Palette generator →

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