#5A1266#5A1266

#5A1266 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.145 H 321.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#5A1266
RGBrgb(90, 18, 102)
HSLhsl(291, 70%, 24%)
HSVhsv(291, 82%, 40%)
CMYKcmyk(11.8%, 82.4%, 0%, 60%)
CIE-LABlab(22.18, 43.31, -32.39)
CIE-LCHlch(22.18, 54.08, 323.21°)
OKLaboklab(34.83% 0.1136 -0.0908)
OKLCHoklch(34.83% 0.145 321.4)
XYZxyz(6.8308, 3.5660, 12.8963)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1266 #1E6612
analogous
#301266 #5A1266 #661248
triadic
#5A1266 #665A12 #12665A
tetradic
#5A1266 #663012 #1E6612 #124866
square
#5A1266 #663012 #1E6612 #124866
split-complementary
#5A1266 #486612 #126630
monochromatic
#17051A #2C0932 #5A1266 #881B9A #B624CE

Accessibility & contrast

On white

12.26
#5A1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1266
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1266#FFFFFF#000000##FFFFFF
##5A12661.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#1D3864
Tritanopia (blue-blind)
#5B243C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1266;
/* rgb */ color: rgb(90, 18, 102);
/* oklch */ color: oklch(34.8% 0.145 321.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a92',
    500: '#5a1266',
    950: '#000000',
  },
}
SCSS
$custom: #5a1266;
$custom-light: #8c5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1266",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 291.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34834,
    "c": 0.14542,
    "h": 321.4
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#5A1266
secondary
#459E36
accent
#ED3B54
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1266

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

Preview Lab → · Contrast checker → · Palette generator →

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