#5E155F#5E155F

#5E155F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.138 H 327.4°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#5E155F
RGBrgb(94, 21, 95)
HSLhsl(299, 64%, 23%)
HSVhsv(299, 78%, 37%)
CMYKcmyk(1.1%, 77.9%, 0%, 62.7%)
CIE-LABlab(22.80, 41.83, -26.76)
CIE-LCHlch(22.80, 49.66, 327.40°)
OKLaboklab(35.27% 0.1162 -0.0742)
OKLCHoklch(35.27% 0.138 327.4)
XYZxyz(6.9497, 3.7427, 11.1806)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E155F #165F15
analogous
#39155F #5E155F #5F153B
triadic
#5E155F #5F5E15 #155F5E
tetradic
#5E155F #5F3915 #165F15 #153B5F
square
#5E155F #5F3915 #165F15 #153B5F
split-complementary
#5E155F #3B5F15 #155F39
monochromatic
#190619 #2C0A2D #5E155F #902091 #C12BC3

Accessibility & contrast

On white

12.01
#5E155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5E155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E155F
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E155F#FFFFFF#000000##FFFFFF
##5E155F1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053061
Deuteranopia (green-blind)
#283A5D
Tritanopia (blue-blind)
#612139
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e155f;
/* rgb */ color: rgb(94, 21, 95);
/* oklch */ color: oklch(35.3% 0.138 327.4);
Tailwind
colors: {
  custom: {
    50: '#8f5b8d',
    500: '#5e155f',
    950: '#000000',
  },
}
SCSS
$custom: #5e155f;
$custom-light: #8f5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e155f",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 299.189,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.13787,
    "h": 327.4
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#5E155F
secondary
#3B963A
accent
#E74143
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E155F

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

Preview Lab → · Contrast checker → · Palette generator →

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