#5A1C94#5A1C94

#5A1C94 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.5% C 0.180 H 301.8°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5A1C94
RGBrgb(90, 28, 148)
HSLhsl(271, 68%, 35%)
HSVhsv(271, 81%, 58%)
CMYKcmyk(39.2%, 81.1%, 0%, 42%)
CIE-LABlab(27.14, 49.92, -53.53)
CIE-LCHlch(27.14, 73.19, 313.00°)
OKLaboklab(39.47% 0.0946 -0.1529)
OKLCHoklch(39.47% 0.18 301.8)
XYZxyz(9.9757, 5.1422, 28.4782)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C94 #56941C
analogous
#1E1C94 #5A1C94 #941C92
triadic
#5A1C94 #945A1C #1C945A
tetradic
#5A1C94 #941E1C #56941C #1C9294
square
#5A1C94 #941E1C #56941C #1C9294
split-complementary
#5A1C94 #92941C #1C941E
monochromatic
#1B092D #3B1261 #5A1C94 #7926C7 #984DDD

Accessibility & contrast

On white

10.35
#5A1C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5A1C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C94
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C94#FFFFFF#000000##FFFFFF
##5A1C941.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#4D3D58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a1c94;
/* rgb */ color: rgb(90, 28, 148);
/* oklch */ color: oklch(39.5% 0.180 301.8);
Tailwind
colors: {
  custom: {
    50: '#8f61b4',
    500: '#5a1c94',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c94;
$custom-light: #8f61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c94",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 271,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39468,
    "c": 0.17982,
    "h": 301.8
  },
  "luminance": 0.05142
}

Semantic roles & 50–950 ramp

primary
#5A1C94
secondary
#84C04C
accent
#EB3D91
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1C94

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

Preview Lab → · Contrast checker → · Palette generator →

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