#5A1C8E#5A1C8E

#5A1C8E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.174 H 303.7°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5A1C8E
RGBrgb(90, 28, 142)
HSLhsl(273, 67%, 33%)
HSVhsv(273, 80%, 56%)
CMYKcmyk(36.6%, 80.3%, 0%, 44.3%)
CIE-LABlab(26.61, 48.47, -50.68)
CIE-LCHlch(26.61, 70.13, 313.73°)
OKLaboklab(38.94% 0.0964 -0.1445)
OKLCHoklch(38.94% 0.174 303.7)
XYZxyz(9.5130, 4.9572, 26.0416)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C8E #508E1C
analogous
#211C8E #5A1C8E #8E1C89
triadic
#5A1C8E #8E5A1C #1C8E5A
tetradic
#5A1C8E #8E211C #508E1C #1C898E
square
#5A1C8E #8E211C #508E1C #1C898E
split-complementary
#5A1C8E #898E1C #1C8E21
monochromatic
#190828 #3A125B #5A1C8E #7A26C1 #9949DB

Accessibility & contrast

On white

10.55
#5A1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C8E
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C8E#FFFFFF#000000##FFFFFF
##5A1C8E1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#4F3A55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1c8e;
/* rgb */ color: rgb(90, 28, 142);
/* oklch */ color: oklch(38.9% 0.174 303.7);
Tailwind
colors: {
  custom: {
    50: '#8e60b0',
    500: '#5a1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c8e;
$custom-light: #8e60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c8e",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 272.632,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38941,
    "c": 0.17371,
    "h": 303.7
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#5A1C8E
secondary
#7EBD49
accent
#EA3E8C
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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