#5E1281#5E1281

#5E1281 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.6% C 0.171 H 311.5°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#5E1281
RGBrgb(94, 18, 129)
HSLhsl(281, 76%, 29%)
HSVhsv(281, 86%, 51%)
CMYKcmyk(27.1%, 86%, 0%, 49.4%)
CIE-LABlab(24.94, 49.66, -45.23)
CIE-LCHlch(24.94, 67.17, 317.67°)
OKLaboklab(37.56% 0.1136 -0.1283)
OKLCHoklch(37.56% 0.171 311.5)
XYZxyz(8.7941, 4.3975, 21.1502)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1281 #358112
analogous
#271281 #5E1281 #81126D
triadic
#5E1281 #815E12 #12815E
tetradic
#5E1281 #812712 #358112 #126D81
square
#5E1281 #812712 #358112 #126D81
split-complementary
#5E1281 #6D8112 #128127
monochromatic
#14041B #370B4B #5E1281 #8519B7 #A82CE2

Accessibility & contrast

On white

11.17
#5E1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E1281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1281
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1281#FFFFFF#000000##FFFFFF
##5E12811.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#59304C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1281;
/* rgb */ color: rgb(94, 18, 129);
/* oklch */ color: oklch(37.6% 0.171 311.5);
Tailwind
colors: {
  custom: {
    50: '#905ca6',
    500: '#5e1281',
    950: '#000000',
  },
}
SCSS
$custom: #5e1281;
$custom-light: #905ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1281",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 281.081,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37564,
    "c": 0.17136,
    "h": 311.5
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#5E1281
secondary
#60B738
accent
#F23671
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1281

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

Preview Lab → · Contrast checker → · Palette generator →

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