#5E1261#5E1261

#5E1261 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.143 H 326.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#5E1261
RGBrgb(94, 18, 97)
HSLhsl(298, 69%, 23%)
HSVhsv(298, 81%, 38%)
CMYKcmyk(3.1%, 81.4%, 0%, 62%)
CIE-LABlab(22.57, 43.23, -28.44)
CIE-LCHlch(22.57, 51.75, 326.66°)
OKLaboklab(35.14% 0.119 -0.0791)
OKLCHoklch(35.14% 0.143 326.4)
XYZxyz(6.9899, 3.6759, 11.6483)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1261 #156112
analogous
#371261 #5E1261 #61123C
triadic
#5E1261 #615E12 #12615E
tetradic
#5E1261 #613712 #156112 #123C61
square
#5E1261 #613712 #156112 #123C61
split-complementary
#5E1261 #3C6112 #126137
monochromatic
#19051A #2C082D #5E1261 #901C95 #C225C8

Accessibility & contrast

On white

12.10
#5E1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5E1261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1261
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1261#FFFFFF#000000##FFFFFF
##5E12611.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003063
Deuteranopia (green-blind)
#26395F
Tritanopia (blue-blind)
#612039
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e1261;
/* rgb */ color: rgb(94, 18, 97);
/* oklch */ color: oklch(35.1% 0.143 326.4);
Tailwind
colors: {
  custom: {
    50: '#8f5a8e',
    500: '#5e1261',
    950: '#000000',
  },
}
SCSS
$custom: #5e1261;
$custom-light: #8f5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1261",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 297.722,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35142,
    "c": 0.14292,
    "h": 326.4
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#5E1261
secondary
#399936
accent
#EC3C43
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E1261

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

Preview Lab → · Contrast checker → · Palette generator →

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