#5A1066#5A1066

#5A1066 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.147 H 321.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#5A1066
RGBrgb(90, 16, 102)
HSLhsl(292, 73%, 23%)
HSVhsv(292, 84%, 40%)
CMYKcmyk(11.8%, 84.3%, 0%, 60%)
CIE-LABlab(21.96, 43.95, -32.75)
CIE-LCHlch(21.96, 54.81, 323.31°)
OKLaboklab(34.68% 0.1154 -0.0918)
OKLCHoklch(34.68% 0.147 321.5)
XYZxyz(6.7997, 3.5039, 12.8860)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1066 #1C6610
analogous
#2F1066 #5A1066 #661047
triadic
#5A1066 #665A10 #10665A
tetradic
#5A1066 #662F10 #1C6610 #104766
square
#5A1066 #662F10 #1C6610 #104766
split-complementary
#5A1066 #476610 #10662F
monochromatic
#17041A #2B0831 #5A1066 #89189B #B721D0

Accessibility & contrast

On white

12.35
#5A1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A1066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1066
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1066#FFFFFF#000000##FFFFFF
##5A10661.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#1C3764
Tritanopia (blue-blind)
#5B233B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1066;
/* rgb */ color: rgb(90, 16, 102);
/* oklch */ color: oklch(34.7% 0.147 321.5);
Tailwind
colors: {
  custom: {
    50: '#8c5992',
    500: '#5a1066',
    950: '#000000',
  },
}
SCSS
$custom: #5a1066;
$custom-light: #8c5992;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1066",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 291.628,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34677,
    "c": 0.14741,
    "h": 321.5
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#5A1066
secondary
#429E33
accent
#F03852
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1066

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

Preview Lab → · Contrast checker → · Palette generator →

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