#5A1362#5A1362

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

Color values

HEX#5A1362
RGBrgb(90, 19, 98)
HSLhsl(294, 68%, 23%)
HSVhsv(294, 81%, 38%)
CMYKcmyk(8.2%, 80.6%, 0%, 61.6%)
CIE-LABlab(22.02, 42.18, -30.02)
CIE-LCHlch(22.02, 51.77, 324.56°)
OKLaboklab(34.63% 0.1131 -0.0838)
OKLCHoklch(34.63% 0.141 323.5)
XYZxyz(6.6537, 3.5217, 11.8822)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1362 #1B6213
analogous
#321362 #5A1362 #621342
triadic
#5A1362 #625A13 #13625A
tetradic
#5A1362 #623213 #1B6213 #134262
square
#5A1362 #623213 #1B6213 #134262
split-complementary
#5A1362 #426213 #136232
monochromatic
#18051A #2B092F #5A1362 #891D95 #B827C9

Accessibility & contrast

On white

12.32
#5A1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1362
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1362#FFFFFF#000000##FFFFFF
##5A13621.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#213760
Tritanopia (blue-blind)
#5C223A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1362;
/* rgb */ color: rgb(90, 19, 98);
/* oklch */ color: oklch(34.6% 0.141 323.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a8f',
    500: '#5a1362',
    950: '#000000',
  },
}
SCSS
$custom: #5a1362;
$custom-light: #8c5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1362",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 293.924,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34633,
    "c": 0.14078,
    "h": 323.5
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#5A1362
secondary
#419A37
accent
#EA3D4F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1362

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

Preview Lab → · Contrast checker → · Palette generator →

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