#5A1462#5A1462

#5A1462 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.140 H 323.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5A1462
RGBrgb(90, 20, 98)
HSLhsl(294, 66%, 23%)
HSVhsv(294, 80%, 38%)
CMYKcmyk(8.2%, 79.6%, 0%, 61.6%)
CIE-LABlab(22.15, 41.82, -29.82)
CIE-LCHlch(22.15, 51.37, 324.51°)
OKLaboklab(34.72% 0.1121 -0.0833)
OKLCHoklch(34.72% 0.14 323.4)
XYZxyz(6.6710, 3.5562, 11.8880)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1462 #1C6214
analogous
#331462 #5A1462 #621443
triadic
#5A1462 #625A14 #14625A
tetradic
#5A1462 #623314 #1C6214 #144362
square
#5A1462 #623314 #1C6214 #144362
split-complementary
#5A1462 #436214 #146233
monochromatic
#170519 #2B0A2F #5A1462 #891E95 #B729C8

Accessibility & contrast

On white

12.27
#5A1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1462
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1462#FFFFFF#000000##FFFFFF
##5A14621.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#223860
Tritanopia (blue-blind)
#5C233A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1462;
/* rgb */ color: rgb(90, 20, 98);
/* oklch */ color: oklch(34.7% 0.140 323.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a8f',
    500: '#5a1462',
    950: '#000000',
  },
}
SCSS
$custom: #5a1462;
$custom-light: #8c5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1462",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 293.846,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34721,
    "c": 0.13966,
    "h": 323.4
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#5A1462
secondary
#429938
accent
#E93F50
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1462

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

Preview Lab → · Contrast checker → · Palette generator →

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