#5E1280#5E1280

#5E1280 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.170 H 311.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#5E1280
RGBrgb(94, 18, 128)
HSLhsl(281, 75%, 29%)
HSVhsv(281, 86%, 50%)
CMYKcmyk(26.6%, 85.9%, 0%, 49.8%)
CIE-LABlab(24.86, 49.45, -44.74)
CIE-LCHlch(24.86, 66.68, 317.86°)
OKLaboklab(37.48% 0.1138 -0.1269)
OKLCHoklch(37.48% 0.17 311.9)
XYZxyz(8.7279, 4.3711, 20.8018)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1280 #348012
analogous
#271280 #5E1280 #80126B
triadic
#5E1280 #805E12 #12805E
tetradic
#5E1280 #802712 #348012 #126B80
square
#5E1280 #802712 #348012 #126B80
split-complementary
#5E1280 #6B8012 #128027
monochromatic
#14041B #370A4A #5E1280 #851AB6 #A92BE1

Accessibility & contrast

On white

11.20
#5E1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5E1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1280
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1280#FFFFFF#000000##FFFFFF
##5E12801.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#5A2F4B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1280;
/* rgb */ color: rgb(94, 18, 128);
/* oklch */ color: oklch(37.5% 0.170 311.9);
Tailwind
colors: {
  custom: {
    50: '#905ca6',
    500: '#5e1280',
    950: '#000000',
  },
}
SCSS
$custom: #5e1280;
$custom-light: #905ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1280",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 281.455,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37481,
    "c": 0.17045,
    "h": 311.9
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#5E1280
secondary
#5FB638
accent
#F23670
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1280

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

Preview Lab → · Contrast checker → · Palette generator →

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