#5A1D9E#5A1D9E

#5A1D9E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.5% C 0.189 H 298.7°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#5A1D9E
RGBrgb(90, 29, 158)
HSLhsl(268, 69%, 37%)
HSVhsv(268, 82%, 62%)
CMYKcmyk(43%, 81.6%, 0%, 38%)
CIE-LABlab(28.17, 51.98, -57.97)
CIE-LCHlch(28.17, 77.86, 311.88°)
OKLaboklab(40.46% 0.0908 -0.1659)
OKLCHoklch(40.46% 0.189 298.7)
XYZxyz(10.8258, 5.5208, 32.8364)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D9E #619E1D
analogous
#1D219E #5A1D9E #9B1D9E
triadic
#5A1D9E #9E5A1D #1D9E5A
tetradic
#5A1D9E #9E1D21 #619E1D #1D9E9B
square
#5A1D9E #9E1D21 #619E1D #1D9E9B
split-complementary
#5A1D9E #9E9B1D #219E1D
monochromatic
#1F0A37 #3D146A #5A1D9E #7726D2 #9756E0

Accessibility & contrast

On white

9.98
#5A1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D9E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D9E#FFFFFF#000000##FFFFFF
##5A1D9E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#49425E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a1d9e;
/* rgb */ color: rgb(90, 29, 158);
/* oklch */ color: oklch(40.5% 0.189 298.7);
Tailwind
colors: {
  custom: {
    50: '#9062bc',
    500: '#5a1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d9e;
$custom-light: #9062bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d9e",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 268.372,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40463,
    "c": 0.18913,
    "h": 298.7
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#5A1D9E
secondary
#8EC354
accent
#EC3C99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5A1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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