#5E1284#5E1284

#5E1284 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.8% C 0.174 H 310.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5E1284
RGBrgb(94, 18, 132)
HSLhsl(280, 76%, 29%)
HSVhsv(280, 86%, 52%)
CMYKcmyk(28.8%, 86.4%, 0%, 48.2%)
CIE-LABlab(25.19, 50.31, -46.72)
CIE-LCHlch(25.19, 68.65, 317.12°)
OKLaboklab(37.82% 0.1127 -0.1327)
OKLCHoklch(37.82% 0.174 310.4)
XYZxyz(8.9964, 4.4784, 22.2158)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1284 #388412
analogous
#251284 #5E1284 #841271
triadic
#5E1284 #845E12 #12845E
tetradic
#5E1284 #842512 #388412 #127184
square
#5E1284 #842512 #388412 #127184
split-complementary
#5E1284 #718412 #128425
monochromatic
#13041B #380B4E #5E1284 #8419BA #A62EE2

Accessibility & contrast

On white

11.08
#5E1284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5E1284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1284
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1284#FFFFFF#000000##FFFFFF
##5E12841.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#59314D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1284;
/* rgb */ color: rgb(94, 18, 132);
/* oklch */ color: oklch(37.8% 0.174 310.4);
Tailwind
colors: {
  custom: {
    50: '#905ca9',
    500: '#5e1284',
    950: '#000000',
  },
}
SCSS
$custom: #5e1284;
$custom-light: #905ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1284",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 132
  },
  "hsl": {
    "h": 280,
    "s": 76,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37815,
    "c": 0.1741,
    "h": 310.4
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#5E1284
secondary
#63B939
accent
#F33574
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1284

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

Preview Lab → · Contrast checker → · Palette generator →

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