#5A1261#5A1261

#5A1261 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.141 H 324.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#5A1261
RGBrgb(90, 18, 97)
HSLhsl(295, 69%, 23%)
HSVhsv(295, 81%, 38%)
CMYKcmyk(7.2%, 81.4%, 0%, 62%)
CIE-LABlab(21.83, 42.33, -29.66)
CIE-LCHlch(21.83, 51.69, 324.98°)
OKLaboklab(34.48% 0.1141 -0.0828)
OKLCHoklch(34.48% 0.141 324)
XYZxyz(6.5902, 3.4698, 11.6296)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1261 #196112
analogous
#331261 #5A1261 #611240
triadic
#5A1261 #615A12 #12615A
tetradic
#5A1261 #613312 #196112 #124061
square
#5A1261 #613312 #196112 #124061
split-complementary
#5A1261 #406112 #126133
monochromatic
#18051A #2A082D #5A1261 #8A1C95 #BA25C8

Accessibility & contrast

On white

12.40
#5A1261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5A1261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1261
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1261#FFFFFF#000000##FFFFFF
##5A12611.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F63
Deuteranopia (green-blind)
#21375F
Tritanopia (blue-blind)
#5C2139
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1261;
/* rgb */ color: rgb(90, 18, 97);
/* oklch */ color: oklch(34.5% 0.141 324.0);
Tailwind
colors: {
  custom: {
    50: '#8c5a8e',
    500: '#5a1261',
    950: '#000000',
  },
}
SCSS
$custom: #5a1261;
$custom-light: #8c5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1261",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 294.684,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34478,
    "c": 0.14098,
    "h": 324
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#5A1261
secondary
#3E9936
accent
#EC3C4C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1261

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

Preview Lab → · Contrast checker → · Palette generator →

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