#5E1A7F#5E1A7F

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

Color values

HEX#5E1A7F
RGBrgb(94, 26, 127)
HSLhsl(280, 66%, 30%)
HSVhsv(280, 80%, 50%)
CMYKcmyk(26%, 79.5%, 0%, 50.2%)
CIE-LABlab(25.72, 46.52, -42.72)
CIE-LCHlch(25.72, 63.16, 317.44°)
OKLaboklab(38.05% 0.1076 -0.121)
OKLCHoklch(38.05% 0.162 311.6)
XYZxyz(8.8155, 4.6510, 20.5079)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A7F #3B7F1A
analogous
#2B1A7F #5E1A7F #7F1A6E
triadic
#5E1A7F #7F5E1A #1A7F5E
tetradic
#5E1A7F #7F2B1A #3B7F1A #1A6E7F
square
#5E1A7F #7F2B1A #3B7F1A #1A6E7F
split-complementary
#5E1A7F #6E7F1A #1A7F2B
monochromatic
#130519 #38104C #5E1A7F #8424B2 #A53CD7

Accessibility & contrast

On white

10.88
#5E1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A7F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A7F#FFFFFF#000000##FFFFFF
##5E1A7F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#053E7D
Tritanopia (blue-blind)
#5A324C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1a7f;
/* rgb */ color: rgb(94, 26, 127);
/* oklch */ color: oklch(38.1% 0.162 311.6);
Tailwind
colors: {
  custom: {
    50: '#905fa5',
    500: '#5e1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a7f;
$custom-light: #905fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a7f",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 280.396,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.16188,
    "h": 311.6
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#5E1A7F
secondary
#67B342
accent
#E93F76
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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