#5E1254#5E1254

#5E1254 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.132 H 334.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#5E1254
RGBrgb(94, 18, 84)
HSLhsl(308, 68%, 22%)
HSVhsv(308, 81%, 37%)
CMYKcmyk(0%, 80.9%, 10.6%, 63.1%)
CIE-LABlab(21.77, 40.94, -21.06)
CIE-LCHlch(21.77, 46.04, 332.78°)
OKLaboklab(34.32% 0.1189 -0.0577)
OKLCHoklch(34.32% 0.132 334.1)
XYZxyz(6.4327, 3.4530, 8.7135)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1254 #125E1C
analogous
#42125E #5E1254 #5E122E
triadic
#5E1254 #545E12 #12545E
tetradic
#5E1254 #5E4212 #125E1C #122E5E
square
#5E1254 #5E4212 #125E1C #122E5E
split-complementary
#5E1254 #2E5E12 #125E42
monochromatic
#1A0517 #2B0826 #5E1254 #911C82 #C526B0

Accessibility & contrast

On white

12.42
#5E1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5E1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1254
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1254#FFFFFF#000000##FFFFFF
##5E12541.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102D56
Deuteranopia (green-blind)
#2D3852
Tritanopia (blue-blind)
#631932
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1254;
/* rgb */ color: rgb(94, 18, 84);
/* oklch */ color: oklch(34.3% 0.132 334.1);
Tailwind
colors: {
  custom: {
    50: '#8f5a84',
    500: '#5e1254',
    950: '#000000',
  },
}
SCSS
$custom: #5e1254;
$custom-light: #8f5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1254",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 307.895,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34316,
    "c": 0.1322,
    "h": 334.1
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#5E1254
secondary
#359642
accent
#EB543D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1254

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

Preview Lab → · Contrast checker → · Palette generator →

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