#5E1276#5E1276

#5E1276 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.161 H 316.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#5E1276
RGBrgb(94, 18, 118)
HSLhsl(286, 74%, 27%)
HSVhsv(286, 85%, 46%)
CMYKcmyk(20.3%, 84.7%, 0%, 53.7%)
CIE-LABlab(24.07, 47.35, -39.67)
CIE-LCHlch(24.07, 61.77, 320.04°)
OKLaboklab(36.68% 0.1162 -0.112)
OKLCHoklch(36.68% 0.161 316.1)
XYZxyz(8.1019, 4.1206, 17.5046)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1276 #2A7612
analogous
#2C1276 #5E1276 #76125C
triadic
#5E1276 #765E12 #12765E
tetradic
#5E1276 #762C12 #2A7612 #125C76
square
#5E1276 #762C12 #2A7612 #125C76
split-complementary
#5E1276 #5C7612 #12762C
monochromatic
#15041B #340A41 #5E1276 #881AAB #B125DE

Accessibility & contrast

On white

11.51
#5E1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5E1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1276
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1276#FFFFFF#000000##FFFFFF
##5E12761.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#103B74
Tritanopia (blue-blind)
#5C2A45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1276;
/* rgb */ color: rgb(94, 18, 118);
/* oklch */ color: oklch(36.7% 0.161 316.1);
Tailwind
colors: {
  custom: {
    50: '#905b9e',
    500: '#5e1276',
    950: '#000000',
  },
}
SCSS
$custom: #5e1276;
$custom-light: #905b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1276",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 285.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36675,
    "c": 0.16138,
    "h": 316.1
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#5E1276
secondary
#53AD37
accent
#F03864
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1276

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

Preview Lab → · Contrast checker → · Palette generator →

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