#5A1C7D#5A1C7D

#5A1C7D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.156 H 309.9°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5A1C7D
RGBrgb(90, 28, 125)
HSLhsl(278, 63%, 30%)
HSVhsv(278, 78%, 49%)
CMYKcmyk(28%, 77.6%, 0%, 51%)
CIE-LABlab(25.21, 44.47, -42.30)
CIE-LCHlch(25.21, 61.37, 316.44°)
OKLaboklab(37.52% 0.1004 -0.1199)
OKLCHoklch(37.52% 0.156 309.9)
XYZxyz(8.3326, 4.4850, 19.8248)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C7D #3F7D1C
analogous
#2A1C7D #5A1C7D #7D1C6F
triadic
#5A1C7D #7D5A1C #1C7D5A
tetradic
#5A1C7D #7D2A1C #3F7D1C #1C6F7D
square
#5A1C7D #7D2A1C #3F7D1C #1C6F7D
split-complementary
#5A1C7D #6F7D1C #1C7D2A
monochromatic
#120619 #36114B #5A1C7D #7E27AF #9E3FD4

Accessibility & contrast

On white

11.07
#5A1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C7D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C7D#FFFFFF#000000##FFFFFF
##5A1C7D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#55334B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1c7d;
/* rgb */ color: rgb(90, 28, 125);
/* oklch */ color: oklch(37.5% 0.156 309.9);
Tailwind
colors: {
  custom: {
    50: '#8d5fa3',
    500: '#5a1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c7d;
$custom-light: #8d5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c7d",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 278.351,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.37522,
    "c": 0.15638,
    "h": 309.9
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#5A1C7D
secondary
#6BB144
accent
#E6417D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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