#5A1D7E#5A1D7E

#5A1D7E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.156 H 309.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5A1D7E
RGBrgb(90, 29, 126)
HSLhsl(278, 63%, 30%)
HSVhsv(278, 77%, 49%)
CMYKcmyk(28.6%, 77%, 0%, 50.6%)
CIE-LABlab(25.44, 44.28, -42.57)
CIE-LCHlch(25.44, 61.42, 316.13°)
OKLaboklab(37.71% 0.0992 -0.1207)
OKLCHoklch(37.71% 0.156 309.4)
XYZxyz(8.4210, 4.5589, 20.1710)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D7E #417E1D
analogous
#291D7E #5A1D7E #7E1D71
triadic
#5A1D7E #7E5A1D #1D7E5A
tetradic
#5A1D7E #7E291D #417E1D #1D717E
square
#5A1D7E #7E291D #417E1D #1D717E
split-complementary
#5A1D7E #717E1D #1D7E29
monochromatic
#13061B #36124C #5A1D7E #7E28B0 #9D42D3

Accessibility & contrast

On white

10.98
#5A1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5A1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D7E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D7E#FFFFFF#000000##FFFFFF
##5A1D7E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#023D7C
Tritanopia (blue-blind)
#55344C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1d7e;
/* rgb */ color: rgb(90, 29, 126);
/* oklch */ color: oklch(37.7% 0.156 309.4);
Tailwind
colors: {
  custom: {
    50: '#8d60a4',
    500: '#5a1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d7e;
$custom-light: #8d60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d7e",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 277.732,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.15624,
    "h": 309.4
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#5A1D7E
secondary
#6DB145
accent
#E6427F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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