#5E1C7D#5E1C7D

#5E1C7D is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.158 H 312.3°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5E1C7D
RGBrgb(94, 28, 125)
HSLhsl(281, 63%, 30%)
HSVhsv(281, 78%, 49%)
CMYKcmyk(24.8%, 77.6%, 0%, 51%)
CIE-LABlab(25.84, 45.29, -41.26)
CIE-LCHlch(25.84, 61.26, 317.66°)
OKLaboklab(38.09% 0.106 -0.1167)
OKLCHoklch(38.09% 0.158 312.3)
XYZxyz(8.7323, 4.6911, 19.8435)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C7D #3B7D1C
analogous
#2E1C7D #5E1C7D #7D1C6B
triadic
#5E1C7D #7D5E1C #1C7D5E
tetradic
#5E1C7D #7D2E1C #3B7D1C #1C6B7D
square
#5E1C7D #7D2E1C #3B7D1C #1C6B7D
split-complementary
#5E1C7D #6B7D1C #1C7D2E
monochromatic
#130619 #38114B #5E1C7D #8427AF #A53FD4

Accessibility & contrast

On white

10.83
#5E1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C7D
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C7D#FFFFFF#000000##FFFFFF
##5E1C7D1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#0E3E7B
Tritanopia (blue-blind)
#5A324B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1c7d;
/* rgb */ color: rgb(94, 28, 125);
/* oklch */ color: oklch(38.1% 0.158 312.3);
Tailwind
colors: {
  custom: {
    50: '#8f60a3',
    500: '#5e1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c7d;
$custom-light: #8f60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c7d",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 280.825,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.38089,
    "c": 0.15769,
    "h": 312.3
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#5E1C7D
secondary
#67B144
accent
#E64176
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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