#5E1273#5E1273

#5E1273 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.159 H 317.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5E1273
RGBrgb(94, 18, 115)
HSLhsl(287, 73%, 26%)
HSVhsv(287, 84%, 45%)
CMYKcmyk(18.3%, 84.3%, 0%, 54.9%)
CIE-LABlab(23.84, 46.74, -38.12)
CIE-LCHlch(23.84, 60.31, 320.80°)
OKLaboklab(36.44% 0.1168 -0.1074)
OKLCHoklch(36.44% 0.159 317.4)
XYZxyz(7.9265, 4.0505, 16.5806)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1273 #277312
analogous
#2D1273 #5E1273 #731257
triadic
#5E1273 #735E12 #12735E
tetradic
#5E1273 #732D12 #277312 #125773
square
#5E1273 #732D12 #277312 #125773
split-complementary
#5E1273 #577312 #12732D
monochromatic
#16041A #330A3E #5E1273 #891AA8 #B423DD

Accessibility & contrast

On white

11.60
#5E1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1273
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1273#FFFFFF#000000##FFFFFF
##5E12731.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#143B71
Tritanopia (blue-blind)
#5D2943
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1273;
/* rgb */ color: rgb(94, 18, 115);
/* oklch */ color: oklch(36.4% 0.159 317.4);
Tailwind
colors: {
  custom: {
    50: '#8f5b9c',
    500: '#5e1273',
    950: '#000000',
  },
}
SCSS
$custom: #5e1273;
$custom-light: #8f5b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1273",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 287.01,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36442,
    "c": 0.15869,
    "h": 317.4
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#5E1273
secondary
#50AA37
accent
#F03860
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5E1273

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

Preview Lab → · Contrast checker → · Palette generator →

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