#5E1658#5E1658

#5E1658 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.131 H 331.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5E1658
RGBrgb(94, 22, 88)
HSLhsl(305, 62%, 23%)
HSVhsv(305, 77%, 37%)
CMYKcmyk(0%, 76.6%, 6.4%, 63.1%)
CIE-LABlab(22.51, 40.19, -22.58)
CIE-LCHlch(22.51, 46.10, 330.68°)
OKLaboklab(34.92% 0.115 -0.0621)
OKLCHoklch(34.92% 0.131 331.6)
XYZxyz(6.6645, 3.6586, 9.5858)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1658 #165E1C
analogous
#40165E #5E1658 #5E1634
triadic
#5E1658 #585E16 #16585E
tetradic
#5E1658 #5E4016 #165E1C #16345E
square
#5E1658 #5E4016 #165E1C #16345E
split-complementary
#5E1658 #345E16 #165E40
monochromatic
#190617 #2C0A2A #5E1658 #902286 #C12DB5

Accessibility & contrast

On white

12.13
#5E1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5E1658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1658
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1658#FFFFFF#000000##FFFFFF
##5E16581.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F5A
Deuteranopia (green-blind)
#2D3956
Tritanopia (blue-blind)
#621E35
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e1658;
/* rgb */ color: rgb(94, 22, 88);
/* oklch */ color: oklch(34.9% 0.131 331.6);
Tailwind
colors: {
  custom: {
    50: '#8e5b87',
    500: '#5e1658',
    950: '#000000',
  },
}
SCSS
$custom: #5e1658;
$custom-light: #8e5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1658",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 305,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.3492,
    "c": 0.13067,
    "h": 331.6
  },
  "luminance": 0.03658
}

Semantic roles & 50–950 ramp

primary
#5E1658
secondary
#3B9542
accent
#E55043
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5E1658

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

Preview Lab → · Contrast checker → · Palette generator →

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