#5E145F#5E145F

#5E145F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.139 H 327.5°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#5E145F
RGBrgb(94, 20, 95)
HSLhsl(299, 65%, 23%)
HSVhsv(299, 79%, 37%)
CMYKcmyk(1.1%, 78.9%, 0%, 62.7%)
CIE-LABlab(22.68, 42.19, -26.95)
CIE-LCHlch(22.68, 50.06, 327.43°)
OKLaboklab(35.18% 0.1172 -0.0748)
OKLCHoklch(35.18% 0.139 327.5)
XYZxyz(6.9317, 3.7067, 11.1746)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E145F #155F14
analogous
#38145F #5E145F #5F143A
triadic
#5E145F #5F5E14 #145F5E
tetradic
#5E145F #5F3814 #155F14 #143A5F
square
#5E145F #5F3814 #155F14 #143A5F
split-complementary
#5E145F #3A5F14 #145F38
monochromatic
#190519 #2C092C #5E145F #901F92 #C229C4

Accessibility & contrast

On white

12.06
#5E145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5E145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E145F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E145F#FFFFFF#000000##FFFFFF
##5E145F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033061
Deuteranopia (green-blind)
#28395D
Tritanopia (blue-blind)
#612038
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e145f;
/* rgb */ color: rgb(94, 20, 95);
/* oklch */ color: oklch(35.2% 0.139 327.5);
Tailwind
colors: {
  custom: {
    50: '#8f5b8d',
    500: '#5e145f',
    950: '#000000',
  },
}
SCSS
$custom: #5e145f;
$custom-light: #8f5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e145f",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 299.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.35177,
    "c": 0.13902,
    "h": 327.5
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#5E145F
secondary
#399738
accent
#E84042
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E145F

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

Preview Lab → · Contrast checker → · Palette generator →

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