#5E1F7D#5E1F7D

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

Color values

HEX#5E1F7D
RGBrgb(94, 31, 125)
HSLhsl(280, 60%, 31%)
HSVhsv(280, 75%, 49%)
CMYKcmyk(24.8%, 75.2%, 0%, 51%)
CIE-LABlab(26.28, 44.03, -40.55)
CIE-LCHlch(26.28, 59.86, 317.36°)
OKLaboklab(38.4% 0.103 -0.1146)
OKLCHoklch(38.4% 0.154 311.9)
XYZxyz(8.8071, 4.8406, 19.8684)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F7D #3E7D1F
analogous
#2F1F7D #5E1F7D #7D1F6D
triadic
#5E1F7D #7D5E1F #1F7D5E
tetradic
#5E1F7D #7D2F1F #3E7D1F #1F6D7D
square
#5E1F7D #7D2F1F #3E7D1F #1F6D7D
split-complementary
#5E1F7D #6D7D1F #1F7D2F
monochromatic
#14071B #39134C #5E1F7D #832BAE #A345D1

Accessibility & contrast

On white

10.67
#5E1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F7D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F7D#FFFFFF#000000##FFFFFF
##5E1F7D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#123F7B
Tritanopia (blue-blind)
#5A344C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1f7d;
/* rgb */ color: rgb(94, 31, 125);
/* oklch */ color: oklch(38.4% 0.154 311.9);
Tailwind
colors: {
  custom: {
    50: '#8f61a3',
    500: '#5e1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f7d;
$custom-light: #8f61a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f7d",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 280.213,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.38401,
    "c": 0.15411,
    "h": 311.9
  },
  "luminance": 0.0484
}

Semantic roles & 50–950 ramp

primary
#5E1F7D
secondary
#6AB048
accent
#E34479
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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