#5A1460#5A1460

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

Color values

HEX#5A1460
RGBrgb(90, 20, 96)
HSLhsl(295, 66%, 23%)
HSVhsv(295, 79%, 38%)
CMYKcmyk(6.2%, 79.2%, 0%, 62.4%)
CIE-LABlab(22.01, 41.43, -28.72)
CIE-LCHlch(22.01, 50.41, 325.28°)
OKLaboklab(34.58% 0.1123 -0.08)
OKLCHoklch(34.58% 0.138 324.5)
XYZxyz(6.5778, 3.5189, 11.3968)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1460 #1A6014
analogous
#341460 #5A1460 #601440
triadic
#5A1460 #605A14 #14605A
tetradic
#5A1460 #603414 #1A6014 #144060
square
#5A1460 #603414 #1A6014 #144060
split-complementary
#5A1460 #406014 #146034
monochromatic
#180519 #2B092D #5A1460 #891F93 #B929C5

Accessibility & contrast

On white

12.33
#5A1460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1460
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1460#FFFFFF#000000##FFFFFF
##5A14601.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#23385E
Tritanopia (blue-blind)
#5C2239
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1460;
/* rgb */ color: rgb(90, 20, 96);
/* oklch */ color: oklch(34.6% 0.138 324.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a8d',
    500: '#5a1460',
    950: '#000000',
  },
}
SCSS
$custom: #5a1460;
$custom-light: #8c5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1460",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 295.263,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34583,
    "c": 0.13786,
    "h": 324.5
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#5A1460
secondary
#409838
accent
#E83F4D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1460

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

Preview Lab → · Contrast checker → · Palette generator →

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