#5A1996#5A1996

#5A1996 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.185 H 301.4°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#5A1996
RGBrgb(90, 25, 150)
HSLhsl(271, 71%, 34%)
HSVhsv(271, 83%, 59%)
CMYKcmyk(40%, 83.3%, 0%, 41.2%)
CIE-LABlab(26.94, 51.51, -55.09)
CIE-LCHlch(26.94, 75.42, 313.07°)
OKLaboklab(39.38% 0.0963 -0.1575)
OKLCHoklch(39.38% 0.185 301.4)
XYZxyz(10.0677, 5.0709, 29.2966)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1996 #559619
analogous
#1B1996 #5A1996 #961994
triadic
#5A1996 #965A19 #19965A
tetradic
#5A1996 #961B19 #559619 #199496
square
#5A1996 #961B19 #559619 #199496
split-complementary
#5A1996 #949619 #19961B
monochromatic
#1B082D #3B1062 #5A1996 #7922CA #9849E1

Accessibility & contrast

On white

10.43
#5A1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1996
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1996#FFFFFF#000000##FFFFFF
##5A19961.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#4C3D59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a1996;
/* rgb */ color: rgb(90, 25, 150);
/* oklch */ color: oklch(39.4% 0.185 301.4);
Tailwind
colors: {
  custom: {
    50: '#8f5fb6',
    500: '#5a1996',
    950: '#000000',
  },
}
SCSS
$custom: #5a1996;
$custom-light: #8f5fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1996",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 271.2,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39384,
    "c": 0.18456,
    "h": 301.4
  },
  "luminance": 0.05071
}

Semantic roles & 50–950 ramp

primary
#5A1996
secondary
#83C249
accent
#EE3A90
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1996

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

Preview Lab → · Contrast checker → · Palette generator →

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