#5E165F#5E165F

#5E165F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.137 H 327.4°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5E165F
RGBrgb(94, 22, 95)
HSLhsl(299, 62%, 23%)
HSVhsv(299, 77%, 37%)
CMYKcmyk(1.1%, 76.8%, 0%, 62.7%)
CIE-LABlab(22.93, 41.46, -26.55)
CIE-LCHlch(22.93, 49.23, 327.37°)
OKLaboklab(35.36% 0.1152 -0.0736)
OKLCHoklch(35.36% 0.137 327.4)
XYZxyz(6.9685, 3.7802, 11.1869)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E165F #175F16
analogous
#39165F #5E165F #5F163B
triadic
#5E165F #5F5E16 #165F5E
tetradic
#5E165F #5F3916 #175F16 #163B5F
square
#5E165F #5F3916 #175F16 #163B5F
split-complementary
#5E165F #3B5F16 #165F39
monochromatic
#190619 #2D0A2D #5E165F #8F2291 #C02DC2

Accessibility & contrast

On white

11.96
#5E165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5E165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E165F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E165F#FFFFFF#000000##FFFFFF
##5E165F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073161
Deuteranopia (green-blind)
#293A5D
Tritanopia (blue-blind)
#612139
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e165f;
/* rgb */ color: rgb(94, 22, 95);
/* oklch */ color: oklch(35.4% 0.137 327.4);
Tailwind
colors: {
  custom: {
    50: '#8e5c8d',
    500: '#5e165f',
    950: '#000000',
  },
}
SCSS
$custom: #5e165f;
$custom-light: #8e5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e165f",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 299.178,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35359,
    "c": 0.13667,
    "h": 327.4
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#5E165F
secondary
#3C963B
accent
#E54245
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E165F

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

Preview Lab → · Contrast checker → · Palette generator →

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