#5A1361#5A1361

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

Color values

HEX#5A1361
RGBrgb(90, 19, 97)
HSLhsl(295, 67%, 23%)
HSVhsv(295, 80%, 38%)
CMYKcmyk(7.2%, 80.4%, 0%, 62%)
CIE-LABlab(21.95, 41.98, -29.47)
CIE-LCHlch(21.95, 51.29, 324.94°)
OKLaboklab(34.56% 0.1132 -0.0822)
OKLCHoklch(34.56% 0.14 324)
XYZxyz(6.6068, 3.5029, 11.6351)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1361 #1A6113
analogous
#331361 #5A1361 #611341
triadic
#5A1361 #615A13 #13615A
tetradic
#5A1361 #613313 #1A6113 #134161
square
#5A1361 #613313 #1A6113 #134161
split-complementary
#5A1361 #416113 #136133
monochromatic
#18051A #2B092E #5A1361 #891D94 #B927C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A1361#FFFFFF#000000##FFFFFF
##5A13611.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)
#002F63
Deuteranopia (green-blind)
#22375F
Tritanopia (blue-blind)
#5C2239
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1361;
/* rgb */ color: rgb(90, 19, 97);
/* oklch */ color: oklch(34.6% 0.140 324.0);
Tailwind
colors: {
  custom: {
    50: '#8c5a8e',
    500: '#5a1361',
    950: '#000000',
  },
}
SCSS
$custom: #5a1361;
$custom-light: #8c5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1361",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 294.615,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.13988,
    "h": 324
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#5A1361
secondary
#409937
accent
#EA3E4D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1361

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

Preview Lab → · Contrast checker → · Palette generator →

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