#5E175F#5E175F

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

Color values

HEX#5E175F
RGBrgb(94, 23, 95)
HSLhsl(299, 61%, 23%)
HSVhsv(299, 76%, 37%)
CMYKcmyk(1.1%, 75.8%, 0%, 62.7%)
CIE-LABlab(23.06, 41.08, -26.34)
CIE-LCHlch(23.06, 48.80, 327.33°)
OKLaboklab(35.45% 0.1141 -0.073)
OKLCHoklch(35.45% 0.135 327.4)
XYZxyz(6.9879, 3.8192, 11.1934)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E175F #185F17
analogous
#3A175F #5E175F #5F173C
triadic
#5E175F #5F5E17 #175F5E
tetradic
#5E175F #5F3A17 #185F17 #173C5F
square
#5E175F #5F3A17 #185F17 #173C5F
split-complementary
#5E175F #3C5F17 #175F3A
monochromatic
#180619 #2D0B2E #5E175F #8F2390 #C02FC2

Accessibility & contrast

On white

11.91
#5E175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E175F
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E175F#FFFFFF#000000##FFFFFF
##5E175F1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e175f;
/* rgb */ color: rgb(94, 23, 95);
/* oklch */ color: oklch(35.5% 0.135 327.4);
Tailwind
colors: {
  custom: {
    50: '#8e5c8d',
    500: '#5e175f',
    950: '#000000',
  },
}
SCSS
$custom: #5e175f;
$custom-light: #8e5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e175f",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 299.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35454,
    "c": 0.13544,
    "h": 327.4
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#5E175F
secondary
#3D963C
accent
#E44446
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E175F

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

Preview Lab → · Contrast checker → · Palette generator →

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