#5A1D94#5A1D94

#5A1D94 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.179 H 301.6°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5A1D94
RGBrgb(90, 29, 148)
HSLhsl(271, 67%, 35%)
HSVhsv(271, 80%, 58%)
CMYKcmyk(39.2%, 80.4%, 0%, 42%)
CIE-LABlab(27.27, 49.53, -53.31)
CIE-LCHlch(27.27, 72.77, 312.89°)
OKLaboklab(39.56% 0.0938 -0.1523)
OKLCHoklch(39.56% 0.179 301.6)
XYZxyz(9.9998, 5.1905, 28.4863)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D94 #57941D
analogous
#1E1D94 #5A1D94 #941D93
triadic
#5A1D94 #945A1D #1D945A
tetradic
#5A1D94 #941E1D #57941D #1D9394
square
#5A1D94 #941E1D #57941D #1D9394
split-complementary
#5A1D94 #93941D #1D941E
monochromatic
#1C092E #3B1361 #5A1D94 #7927C7 #974FDC

Accessibility & contrast

On white

10.30
#5A1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5A1D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D94
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D94#FFFFFF#000000##FFFFFF
##5A1D941.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#4D3D59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a1d94;
/* rgb */ color: rgb(90, 29, 148);
/* oklch */ color: oklch(39.6% 0.179 301.6);
Tailwind
colors: {
  custom: {
    50: '#8f61b4',
    500: '#5a1d94',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d94;
$custom-light: #8f61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d94",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 270.756,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39561,
    "c": 0.17885,
    "h": 301.6
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#5A1D94
secondary
#85BF4E
accent
#EA3E92
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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