#5E1056#5E1056

#5E1056 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.136 H 332.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#5E1056
RGBrgb(94, 16, 86)
HSLhsl(306, 71%, 22%)
HSVhsv(306, 83%, 37%)
CMYKcmyk(0%, 83%, 8.5%, 63.1%)
CIE-LABlab(21.66, 41.93, -22.58)
CIE-LCHlch(21.66, 47.62, 331.70°)
OKLaboklab(34.28% 0.121 -0.0621)
OKLCHoklch(34.28% 0.136 332.8)
XYZxyz(6.4811, 3.4227, 9.1216)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1056 #105E18
analogous
#3F105E #5E1056 #5E102F
triadic
#5E1056 #565E10 #10565E
tetradic
#5E1056 #5E3F10 #105E18 #102F5E
square
#5E1056 #5E3F10 #105E18 #102F5E
split-complementary
#5E1056 #2F5E10 #105E3F
monochromatic
#1A0418 #2A0726 #5E1056 #921986 #C722B6

Accessibility & contrast

On white

12.47
#5E1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5E1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1056
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1056#FFFFFF#000000##FFFFFF
##5E10561.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2D58
Deuteranopia (green-blind)
#2B3854
Tritanopia (blue-blind)
#631932
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1056;
/* rgb */ color: rgb(94, 16, 86);
/* oklch */ color: oklch(34.3% 0.136 332.8);
Tailwind
colors: {
  custom: {
    50: '#8f5986',
    500: '#5e1056',
    950: '#000000',
  },
}
SCSS
$custom: #5e1056;
$custom-light: #8f5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1056",
  "rgb": {
    "r": 94,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 306.154,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34275,
    "c": 0.13594,
    "h": 332.8
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#5E1056
secondary
#33973D
accent
#EE4D3A
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1056

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

Preview Lab → · Contrast checker → · Palette generator →

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