#5D1A7F#5D1A7F

#5D1A7F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.162 H 311.1°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#5D1A7F
RGBrgb(93, 26, 127)
HSLhsl(280, 66%, 30%)
HSVhsv(280, 80%, 50%)
CMYKcmyk(26.8%, 79.5%, 0%, 50.2%)
CIE-LABlab(25.56, 46.32, -42.98)
CIE-LCHlch(25.56, 63.19, 317.14°)
OKLaboklab(37.91% 0.1062 -0.1218)
OKLCHoklch(37.91% 0.162 311.1)
XYZxyz(8.7136, 4.5985, 20.5031)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A7F #3C7F1A
analogous
#2B1A7F #5D1A7F #7F1A6E
triadic
#5D1A7F #7F5D1A #1A7F5D
tetradic
#5D1A7F #7F2B1A #3C7F1A #1A6E7F
square
#5D1A7F #7F2B1A #3C7F1A #1A6E7F
split-complementary
#5D1A7F #6E7F1A #1A7F2B
monochromatic
#130519 #38104C #5D1A7F #8224B2 #A33CD7

Accessibility & contrast

On white

10.94
#5D1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1A7F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A7F#FFFFFF#000000##FFFFFF
##5D1A7F1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#023E7D
Tritanopia (blue-blind)
#58324C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1a7f;
/* rgb */ color: rgb(93, 26, 127);
/* oklch */ color: oklch(37.9% 0.162 311.1);
Tailwind
colors: {
  custom: {
    50: '#8f5fa5',
    500: '#5d1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a7f;
$custom-light: #8f5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a7f",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 279.802,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.3791,
    "c": 0.16156,
    "h": 311.1
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

primary
#5D1A7F
secondary
#68B342
accent
#E93F78
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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