#5E1272#5E1272

#5E1272 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.158 H 317.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5E1272
RGBrgb(94, 18, 114)
HSLhsl(288, 73%, 26%)
HSVhsv(288, 84%, 45%)
CMYKcmyk(17.5%, 84.2%, 0%, 55.3%)
CIE-LABlab(23.76, 46.53, -37.59)
CIE-LCHlch(23.76, 59.82, 321.06°)
OKLaboklab(36.37% 0.117 -0.1059)
OKLCHoklch(36.37% 0.158 317.9)
XYZxyz(7.8692, 4.0276, 16.2792)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1272 #267212
analogous
#2E1272 #5E1272 #721256
triadic
#5E1272 #725E12 #12725E
tetradic
#5E1272 #722E12 #267212 #125672
square
#5E1272 #722E12 #267212 #125672
split-complementary
#5E1272 #567212 #12722E
monochromatic
#16041A #320A3D #5E1272 #8A1AA7 #B523DC

Accessibility & contrast

On white

11.63
#5E1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1272
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1272#FFFFFF#000000##FFFFFF
##5E12721.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003475
Deuteranopia (green-blind)
#163B70
Tritanopia (blue-blind)
#5D2843
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1272;
/* rgb */ color: rgb(94, 18, 114);
/* oklch */ color: oklch(36.4% 0.158 317.9);
Tailwind
colors: {
  custom: {
    50: '#8f5b9b',
    500: '#5e1272',
    950: '#000000',
  },
}
SCSS
$custom: #5e1272;
$custom-light: #8f5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1272",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 287.5,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.1578,
    "h": 317.9
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#5E1272
secondary
#4FA937
accent
#EF385F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1272

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

Preview Lab → · Contrast checker → · Palette generator →

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