#5E1253#5E1253

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

Color values

HEX#5E1253
RGBrgb(94, 18, 83)
HSLhsl(309, 68%, 22%)
HSVhsv(309, 81%, 37%)
CMYKcmyk(0%, 80.9%, 11.7%, 63.1%)
CIE-LABlab(21.72, 40.78, -20.48)
CIE-LCHlch(21.72, 45.63, 333.34°)
OKLaboklab(34.26% 0.1189 -0.056)
OKLCHoklch(34.26% 0.131 334.8)
XYZxyz(6.3938, 3.4374, 8.5087)
Luminance0.0344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1253 #125E1D
analogous
#43125E #5E1253 #5E122D
triadic
#5E1253 #535E12 #12535E
tetradic
#5E1253 #5E4312 #125E1D #122D5E
square
#5E1253 #5E4312 #125E1D #122D5E
split-complementary
#5E1253 #2D5E12 #125E43
monochromatic
#1A0517 #2B0826 #5E1253 #911C80 #C526AE

Accessibility & contrast

On white

12.45
#5E1253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1253
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1253#FFFFFF#000000##FFFFFF
##5E12531.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112D55
Deuteranopia (green-blind)
#2D3851
Tritanopia (blue-blind)
#631931
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5e1253;
/* rgb */ color: rgb(94, 18, 83);
/* oklch */ color: oklch(34.3% 0.131 334.8);
Tailwind
colors: {
  custom: {
    50: '#8f5a83',
    500: '#5e1253',
    950: '#000000',
  },
}
SCSS
$custom: #5e1253;
$custom-light: #8f5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1253",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 308.684,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34257,
    "c": 0.13141,
    "h": 334.8
  },
  "luminance": 0.03437
}

Semantic roles & 50–950 ramp

primary
#5E1253
secondary
#359644
accent
#EB563D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5E1253

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

Preview Lab → · Contrast checker → · Palette generator →

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