#5E1266#5E1266

#5E1266 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.147 H 323.7°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#5E1266
RGBrgb(94, 18, 102)
HSLhsl(294, 70%, 24%)
HSVhsv(294, 82%, 40%)
CMYKcmyk(7.8%, 82.4%, 0%, 60%)
CIE-LABlab(22.90, 44.17, -31.19)
CIE-LCHlch(22.90, 54.08, 324.77°)
OKLaboklab(35.49% 0.1187 -0.0871)
OKLCHoklch(35.49% 0.147 323.7)
XYZxyz(7.2305, 3.7721, 12.9150)
Luminance0.0377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1266 #1A6612
analogous
#341266 #5E1266 #661244
triadic
#5E1266 #665E12 #12665E
tetradic
#5E1266 #663412 #1A6612 #124466
square
#5E1266 #663412 #1A6612 #124466
split-complementary
#5E1266 #446612 #126634
monochromatic
#18051A #2E0932 #5E1266 #8E1B9A #BE24CE

Accessibility & contrast

On white

11.97
#5E1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1266
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1266#FFFFFF#000000##FFFFFF
##5E12661.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#223A64
Tritanopia (blue-blind)
#60233C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e1266;
/* rgb */ color: rgb(94, 18, 102);
/* oklch */ color: oklch(35.5% 0.147 323.7);
Tailwind
colors: {
  custom: {
    50: '#8f5a92',
    500: '#5e1266',
    950: '#000000',
  },
}
SCSS
$custom: #5e1266;
$custom-light: #8f5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1266",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 294.286,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35486,
    "c": 0.14722,
    "h": 323.7
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#5E1266
secondary
#409E36
accent
#ED3B4C
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5E1266

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

Preview Lab → · Contrast checker → · Palette generator →

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