#5F1056#5F1056

#5F1056 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.137 H 333.4°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#5F1056
RGBrgb(95, 16, 86)
HSLhsl(307, 71%, 22%)
HSVhsv(307, 83%, 37%)
CMYKcmyk(0%, 83.2%, 9.5%, 62.7%)
CIE-LABlab(21.86, 42.17, -22.26)
CIE-LCHlch(21.86, 47.69, 332.18°)
OKLaboklab(34.45% 0.1221 -0.0611)
OKLCHoklch(34.45% 0.137 333.4)
XYZxyz(6.5844, 3.4759, 9.1264)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1056 #105F19
analogous
#41105F #5F1056 #5F102F
triadic
#5F1056 #565F10 #10565F
tetradic
#5F1056 #5F4110 #105F19 #102F5F
square
#5F1056 #5F4110 #105F19 #102F5F
split-complementary
#5F1056 #2F5F10 #105F41
monochromatic
#1A0418 #2B0727 #5F1056 #931985 #C822B5

Accessibility & contrast

On white

12.39
#5F1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1056
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1056#FFFFFF#000000##FFFFFF
##5F10561.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D58
Deuteranopia (green-blind)
#2C3854
Tritanopia (blue-blind)
#641932
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1056;
/* rgb */ color: rgb(95, 16, 86);
/* oklch */ color: oklch(34.4% 0.137 333.4);
Tailwind
colors: {
  custom: {
    50: '#8f5986',
    500: '#5f1056',
    950: '#000000',
  },
}
SCSS
$custom: #5f1056;
$custom-light: #8f5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1056",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 306.835,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3445,
    "c": 0.1365,
    "h": 333.4
  },
  "luminance": 0.03475
}

Semantic roles & 50–950 ramp

primary
#5F1056
secondary
#33983E
accent
#EE4E3A
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1056

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

Preview Lab → · Contrast checker → · Palette generator →

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