#5E1264#5E1264

#5E1264 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.145 H 324.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#5E1264
RGBrgb(94, 18, 100)
HSLhsl(296, 69%, 23%)
HSVhsv(296, 82%, 39%)
CMYKcmyk(6%, 82%, 0%, 60.8%)
CIE-LABlab(22.77, 43.79, -30.10)
CIE-LCHlch(22.77, 53.14, 325.50°)
OKLaboklab(35.35% 0.1188 -0.0839)
OKLCHoklch(35.35% 0.145 324.8)
XYZxyz(7.1325, 3.7329, 12.3990)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1264 #186412
analogous
#351264 #5E1264 #641241
triadic
#5E1264 #645E12 #12645E
tetradic
#5E1264 #643512 #186412 #124164
square
#5E1264 #643512 #186412 #124164
split-complementary
#5E1264 #416412 #126435
monochromatic
#18051A #2D0930 #5E1264 #8F1B98 #C025CC

Accessibility & contrast

On white

12.02
#5E1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5E1264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1264
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1264#FFFFFF#000000##FFFFFF
##5E12641.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#243962
Tritanopia (blue-blind)
#60223B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e1264;
/* rgb */ color: rgb(94, 18, 100);
/* oklch */ color: oklch(35.3% 0.145 324.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a90',
    500: '#5e1264',
    950: '#000000',
  },
}
SCSS
$custom: #5e1264;
$custom-light: #8f5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1264",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 295.61,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35347,
    "c": 0.14548,
    "h": 324.8
  },
  "luminance": 0.03732
}

Semantic roles & 50–950 ramp

primary
#5E1264
secondary
#3D9C36
accent
#EC3B48
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E1264

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

Preview Lab → · Contrast checker → · Palette generator →

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