#5E1E7C#5E1E7C

#5E1E7C is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.2% C 0.154 H 312.5°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#5E1E7C
RGBrgb(94, 30, 124)
HSLhsl(281, 61%, 30%)
HSVhsv(281, 76%, 49%)
CMYKcmyk(24.2%, 75.8%, 0%, 51.4%)
CIE-LABlab(26.05, 44.24, -40.28)
CIE-LCHlch(26.05, 59.83, 317.68°)
OKLaboklab(38.22% 0.1042 -0.1138)
OKLCHoklch(38.22% 0.154 312.5)
XYZxyz(8.7178, 4.7637, 19.5251)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E7C #3C7C1E
analogous
#2F1E7C #5E1E7C #7C1E6B
triadic
#5E1E7C #7C5E1E #1E7C5E
tetradic
#5E1E7C #7C2F1E #3C7C1E #1E6B7C
square
#5E1E7C #7C2F1E #3C7C1E #1E6B7C
split-complementary
#5E1E7C #6B7C1E #1E7C2F
monochromatic
#130619 #39124B #5E1E7C #832AAD #A443D1

Accessibility & contrast

On white

10.75
#5E1E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1E7C
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E7C#FFFFFF#000000##FFFFFF
##5E1E7C1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#133F7A
Tritanopia (blue-blind)
#5B334B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1e7c;
/* rgb */ color: rgb(94, 30, 124);
/* oklch */ color: oklch(38.2% 0.154 312.5);
Tailwind
colors: {
  custom: {
    50: '#8f61a2',
    500: '#5e1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e7c;
$custom-light: #8f61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e7c",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 280.851,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.15432,
    "h": 312.5
  },
  "luminance": 0.04763
}

Semantic roles & 50–950 ramp

primary
#5E1E7C
secondary
#68AF46
accent
#E44477
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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