#5E1252#5E1252

#5E1252 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.131 H 335.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#5E1252
RGBrgb(94, 18, 82)
HSLhsl(309, 68%, 22%)
HSVhsv(309, 81%, 37%)
CMYKcmyk(0%, 80.9%, 12.8%, 63.1%)
CIE-LABlab(21.66, 40.61, -19.89)
CIE-LCHlch(21.66, 45.22, 333.90°)
OKLaboklab(34.2% 0.1188 -0.0543)
OKLCHoklch(34.2% 0.131 335.4)
XYZxyz(6.3555, 3.4221, 8.3068)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1252 #125E1E
analogous
#44125E #5E1252 #5E122C
triadic
#5E1252 #525E12 #12525E
tetradic
#5E1252 #5E4412 #125E1E #122C5E
square
#5E1252 #5E4412 #125E1E #122C5E
split-complementary
#5E1252 #2C5E12 #125E44
monochromatic
#1A0516 #2B0825 #5E1252 #911C7F #C526AC

Accessibility & contrast

On white

12.47
#5E1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5E1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1252
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1252#FFFFFF#000000##FFFFFF
##5E12521.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D54
Deuteranopia (green-blind)
#2E3850
Tritanopia (blue-blind)
#631831
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1252;
/* rgb */ color: rgb(94, 18, 82);
/* oklch */ color: oklch(34.2% 0.131 335.4);
Tailwind
colors: {
  custom: {
    50: '#8f5983',
    500: '#5e1252',
    950: '#000000',
  },
}
SCSS
$custom: #5e1252;
$custom-light: #8f5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1252",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 309.474,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.13063,
    "h": 335.4
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#5E1252
secondary
#359645
accent
#EB583D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5E1252

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

Preview Lab → · Contrast checker → · Palette generator →

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