#5A1994#5A1994

#5A1994 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.183 H 302.1°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5A1994
RGBrgb(90, 25, 148)
HSLhsl(272, 71%, 34%)
HSVhsv(272, 83%, 58%)
CMYKcmyk(39.2%, 83.1%, 0%, 42%)
CIE-LABlab(26.75, 51.03, -54.15)
CIE-LCHlch(26.75, 74.41, 313.30°)
OKLaboklab(39.2% 0.0969 -0.1547)
OKLCHoklch(39.2% 0.183 302.1)
XYZxyz(9.9081, 5.0070, 28.4557)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1994 #539419
analogous
#1C1994 #5A1994 #941991
triadic
#5A1994 #945A19 #19945A
tetradic
#5A1994 #941C19 #539419 #199194
square
#5A1994 #941C19 #539419 #199194
split-complementary
#5A1994 #919419 #19941C
monochromatic
#1A072B #3A1060 #5A1994 #7A22C8 #9847E0

Accessibility & contrast

On white

10.49
#5A1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5A1994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1994
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1994#FFFFFF#000000##FFFFFF
##5A19941.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#4D3C58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1994;
/* rgb */ color: rgb(90, 25, 148);
/* oklch */ color: oklch(39.2% 0.183 302.1);
Tailwind
colors: {
  custom: {
    50: '#8f5fb4',
    500: '#5a1994',
    950: '#000000',
  },
}
SCSS
$custom: #5a1994;
$custom-light: #8f5fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1994",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 271.707,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39203,
    "c": 0.18257,
    "h": 302.1
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#5A1994
secondary
#81C147
accent
#EE3A8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1994

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

Preview Lab → · Contrast checker → · Palette generator →

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