#5E1C7A#5E1C7A

#5E1C7A is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.155 H 313.5°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5E1C7A
RGBrgb(94, 28, 122)
HSLhsl(282, 63%, 29%)
HSVhsv(282, 77%, 48%)
CMYKcmyk(23%, 77%, 0%, 52.2%)
CIE-LABlab(25.61, 44.62, -39.72)
CIE-LCHlch(25.61, 59.74, 318.32°)
OKLaboklab(37.86% 0.1065 -0.1122)
OKLCHoklch(37.86% 0.155 313.5)
XYZxyz(8.5436, 4.6156, 18.8494)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C7A #387A1C
analogous
#2F1C7A #5E1C7A #7A1C67
triadic
#5E1C7A #7A5E1C #1C7A5E
tetradic
#5E1C7A #7A2F1C #387A1C #1C677A
square
#5E1C7A #7A2F1C #387A1C #1C677A
split-complementary
#5E1C7A #677A1C #1C7A2F
monochromatic
#130619 #381148 #5E1C7A #8427AC #A63ED3

Accessibility & contrast

On white

10.92
#5E1C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E1C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C7A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C7A#FFFFFF#000000##FFFFFF
##5E1C7A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#133E78
Tritanopia (blue-blind)
#5B314A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1c7a;
/* rgb */ color: rgb(94, 28, 122);
/* oklch */ color: oklch(37.9% 0.155 313.5);
Tailwind
colors: {
  custom: {
    50: '#8f60a1',
    500: '#5e1c7a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c7a;
$custom-light: #8f60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c7a",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 282.128,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37858,
    "c": 0.15472,
    "h": 313.5
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#5E1C7A
secondary
#63AE44
accent
#E64273
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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