#5E1258#5E1258

#5E1258 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.135 H 331.6°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5E1258
RGBrgb(94, 18, 88)
HSLhsl(305, 68%, 22%)
HSVhsv(305, 81%, 37%)
CMYKcmyk(0%, 80.9%, 6.4%, 63.1%)
CIE-LABlab(22.01, 41.63, -23.37)
CIE-LCHlch(22.01, 47.74, 330.69°)
OKLaboklab(34.56% 0.1191 -0.0644)
OKLCHoklch(34.56% 0.135 331.6)
XYZxyz(6.5939, 3.5174, 9.5623)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1258 #125E18
analogous
#3E125E #5E1258 #5E1232
triadic
#5E1258 #585E12 #12585E
tetradic
#5E1258 #5E3E12 #125E18 #12325E
square
#5E1258 #5E3E12 #125E18 #12325E
split-complementary
#5E1258 #325E12 #125E3E
monochromatic
#1A0518 #2B0828 #5E1258 #911C88 #C526B8

Accessibility & contrast

On white

12.33
#5E1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5E1258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1258
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1258#FFFFFF#000000##FFFFFF
##5E12581.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2E5A
Deuteranopia (green-blind)
#2B3856
Tritanopia (blue-blind)
#621B34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5e1258;
/* rgb */ color: rgb(94, 18, 88);
/* oklch */ color: oklch(34.6% 0.135 331.6);
Tailwind
colors: {
  custom: {
    50: '#8f5a87',
    500: '#5e1258',
    950: '#000000',
  },
}
SCSS
$custom: #5e1258;
$custom-light: #8f5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1258",
  "rgb": {
    "r": 94,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 304.737,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3456,
    "c": 0.1354,
    "h": 331.6
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#5E1258
secondary
#35963D
accent
#EB4B3D
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1258

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

Preview Lab → · Contrast checker → · Palette generator →

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