#5E1268#5E1268

#5E1268 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.149 H 322.7°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#5E1268
RGBrgb(94, 18, 104)
HSLhsl(293, 70%, 24%)
HSVhsv(293, 83%, 41%)
CMYKcmyk(9.6%, 82.7%, 0%, 59.2%)
CIE-LABlab(23.04, 44.56, -32.28)
CIE-LCHlch(23.04, 55.02, 324.08°)
OKLaboklab(35.63% 0.1185 -0.0903)
OKLCHoklch(35.63% 0.149 322.7)
XYZxyz(7.3308, 3.8122, 13.4437)
Luminance0.0381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1268 #1C6812
analogous
#331268 #5E1268 #681247
triadic
#5E1268 #685E12 #12685E
tetradic
#5E1268 #683312 #1C6812 #124768
square
#5E1268 #683312 #1C6812 #124768
split-complementary
#5E1268 #476812 #126833
monochromatic
#18051A #2F0934 #5E1268 #8D1B9C #BC24D0

Accessibility & contrast

On white

11.92
#5E1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5E1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1268
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1268#FFFFFF#000000##FFFFFF
##5E12681.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#203A66
Tritanopia (blue-blind)
#5F243D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e1268;
/* rgb */ color: rgb(94, 18, 104);
/* oklch */ color: oklch(35.6% 0.149 322.7);
Tailwind
colors: {
  custom: {
    50: '#8f5b94',
    500: '#5e1268',
    950: '#000000',
  },
}
SCSS
$custom: #5e1268;
$custom-light: #8f5b94;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1268",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 293.023,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35627,
    "c": 0.14895,
    "h": 322.7
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#5E1268
secondary
#42A036
accent
#ED3B4F
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1268

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

Preview Lab → · Contrast checker → · Palette generator →

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