#5A1966#5A1966

#5A1966 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.137 H 320.9°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#5A1966
RGBrgb(90, 25, 102)
HSLhsl(291, 61%, 25%)
HSVhsv(291, 75%, 40%)
CMYKcmyk(11.8%, 75.5%, 0%, 60%)
CIE-LABlab(23.10, 40.68, -30.92)
CIE-LCHlch(23.10, 51.10, 322.76°)
OKLaboklab(35.49% 0.1066 -0.0865)
OKLCHoklch(35.49% 0.137 320.9)
XYZxyz(6.9621, 3.8286, 12.9401)
Luminance0.0383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1966 #256619
analogous
#331966 #5A1966 #66194C
triadic
#5A1966 #665A19 #19665A
tetradic
#5A1966 #663319 #256619 #194C66
square
#5A1966 #663319 #256619 #194C66
split-complementary
#5A1966 #4C6619 #196633
monochromatic
#160619 #2F0D35 #5A1966 #852597 #B131C8

Accessibility & contrast

On white

11.89
#5A1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1966
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1966#FFFFFF#000000##FFFFFF
##5A19661.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#223964
Tritanopia (blue-blind)
#5B273E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1966;
/* rgb */ color: rgb(90, 25, 102);
/* oklch */ color: oklch(35.5% 0.137 320.9);
Tailwind
colors: {
  custom: {
    50: '#8b5d92',
    500: '#5a1966',
    950: '#000000',
  },
}
SCSS
$custom: #5a1966;
$custom-light: #8b5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1966",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 290.649,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35485,
    "c": 0.1373,
    "h": 320.9
  },
  "luminance": 0.03828
}

Semantic roles & 50–950 ramp

primary
#5A1966
secondary
#4D9C3F
accent
#E4445D
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1966

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

Preview Lab → · Contrast checker → · Palette generator →

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