#5A1D9F#5A1D9F

#5A1D9F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.190 H 298.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#5A1D9F
RGBrgb(90, 29, 159)
HSLhsl(268, 69%, 37%)
HSVhsv(268, 82%, 62%)
CMYKcmyk(43.4%, 81.8%, 0%, 37.6%)
CIE-LABlab(28.26, 52.23, -58.42)
CIE-LCHlch(28.26, 78.37, 311.80°)
OKLaboklab(40.56% 0.0904 -0.1673)
OKLCHoklch(40.56% 0.19 298.4)
XYZxyz(10.9122, 5.5554, 33.2915)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D9F #629F1D
analogous
#1D219F #5A1D9F #9B1D9F
triadic
#5A1D9F #9F5A1D #1D9F5A
tetradic
#5A1D9F #9F1D21 #629F1D #1D9F9B
square
#5A1D9F #9F1D21 #629F1D #1D9F9B
split-complementary
#5A1D9F #9F9B1D #219F1D
monochromatic
#1F0A37 #3D146B #5A1D9F #7726D3 #9756E0

Accessibility & contrast

On white

9.95
#5A1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5A1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D9F
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D9F#FFFFFF#000000##FFFFFF
##5A1D9F1.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#48425F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5a1d9f;
/* rgb */ color: rgb(90, 29, 159);
/* oklch */ color: oklch(40.6% 0.190 298.4);
Tailwind
colors: {
  custom: {
    50: '#9062bc',
    500: '#5a1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d9f;
$custom-light: #9062bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d9f",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 268.154,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40555,
    "c": 0.19015,
    "h": 298.4
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#5A1D9F
secondary
#8FC454
accent
#EC3C99
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5A1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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