#5A1C97#5A1C97

#5A1C97 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.7% C 0.183 H 300.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5A1C97
RGBrgb(90, 28, 151)
HSLhsl(270, 69%, 35%)
HSVhsv(270, 81%, 59%)
CMYKcmyk(40.4%, 81.5%, 0%, 40.8%)
CIE-LABlab(27.40, 50.65, -54.94)
CIE-LCHlch(27.40, 74.72, 312.67°)
OKLaboklab(39.74% 0.0937 -0.157)
OKLCHoklch(39.74% 0.183 300.8)
XYZxyz(10.2162, 5.2384, 29.7450)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C97 #59971C
analogous
#1D1C97 #5A1C97 #971C96
triadic
#5A1C97 #975A1C #1C975A
tetradic
#5A1C97 #971D1C #59971C #1C9697
square
#5A1C97 #971D1C #59971C #1C9697
split-complementary
#5A1C97 #96971C #1C971D
monochromatic
#1C0930 #3B1263 #5A1C97 #7926CB #974FDE

Accessibility & contrast

On white

10.25
#5A1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5A1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C97
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C97#FFFFFF#000000##FFFFFF
##5A1C971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#4C3E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a1c97;
/* rgb */ color: rgb(90, 28, 151);
/* oklch */ color: oklch(39.7% 0.183 300.8);
Tailwind
colors: {
  custom: {
    50: '#8f61b7',
    500: '#5a1c97',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c97;
$custom-light: #8f61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c97",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 270.244,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39736,
    "c": 0.18288,
    "h": 300.8
  },
  "luminance": 0.05239
}

Semantic roles & 50–950 ramp

primary
#5A1C97
secondary
#87C14E
accent
#EC3C93
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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