#5A1D9C#5A1D9C

#5A1D9C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.187 H 299.2°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#5A1D9C
RGBrgb(90, 29, 156)
HSLhsl(269, 69%, 36%)
HSVhsv(269, 81%, 61%)
CMYKcmyk(42.3%, 81.4%, 0%, 38.8%)
CIE-LABlab(27.99, 51.49, -57.05)
CIE-LCHlch(27.99, 76.85, 312.07°)
OKLaboklab(40.28% 0.0914 -0.1632)
OKLCHoklch(40.28% 0.187 299.2)
XYZxyz(10.6550, 5.4525, 31.9371)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D9C #5F9C1D
analogous
#1D1F9C #5A1D9C #9A1D9C
triadic
#5A1D9C #9C5A1D #1D9C5A
tetradic
#5A1D9C #9C1D1F #5F9C1D #1D9C9A
square
#5A1D9C #9C1D1F #5F9C1D #1D9C9A
split-complementary
#5A1D9C #9C9A1D #1F9C1D
monochromatic
#1E0A35 #3C1368 #5A1D9C #7827D0 #9754DF

Accessibility & contrast

On white

10.04
#5A1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5A1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D9C
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D9C#FFFFFF#000000##FFFFFF
##5A1D9C1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#4A415D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a1d9c;
/* rgb */ color: rgb(90, 29, 156);
/* oklch */ color: oklch(40.3% 0.187 299.2);
Tailwind
colors: {
  custom: {
    50: '#9061ba',
    500: '#5a1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d9c;
$custom-light: #9061ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d9c",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 268.819,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4028,
    "c": 0.18707,
    "h": 299.2
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

primary
#5A1D9C
secondary
#8DC252
accent
#EB3C97
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5A1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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