#5E1256#5E1256

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

Color values

HEX#5E1256
RGBrgb(94, 18, 86)
HSLhsl(306, 68%, 22%)
HSVhsv(306, 81%, 37%)
CMYKcmyk(0%, 80.9%, 8.5%, 63.1%)
CIE-LABlab(21.89, 41.28, -22.22)
CIE-LCHlch(21.89, 46.88, 331.71°)
OKLaboklab(34.44% 0.1191 -0.061)
OKLCHoklch(34.44% 0.134 332.9)
XYZxyz(6.5121, 3.4847, 9.1319)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1256 #125E1A
analogous
#40125E #5E1256 #5E1230
triadic
#5E1256 #565E12 #12565E
tetradic
#5E1256 #5E4012 #125E1A #12305E
square
#5E1256 #5E4012 #125E1A #12305E
split-complementary
#5E1256 #305E12 #125E40
monochromatic
#1A0517 #2B0827 #5E1256 #911C85 #C526B4

Accessibility & contrast

On white

12.38
#5E1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1256
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1256#FFFFFF#000000##FFFFFF
##5E12561.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2E58
Deuteranopia (green-blind)
#2C3854
Tritanopia (blue-blind)
#621A33
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1256;
/* rgb */ color: rgb(94, 18, 86);
/* oklch */ color: oklch(34.4% 0.134 332.9);
Tailwind
colors: {
  custom: {
    50: '#8f5a86',
    500: '#5e1256',
    950: '#000000',
  },
}
SCSS
$custom: #5e1256;
$custom-light: #8f5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1256",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 306.316,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34437,
    "c": 0.13379,
    "h": 332.9
  },
  "luminance": 0.03484
}

Semantic roles & 50–950 ramp

primary
#5E1256
secondary
#359640
accent
#EB4F3D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1256

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

Preview Lab → · Contrast checker → · Palette generator →

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