#5A1260#5A1260

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

Color values

HEX#5A1260
RGBrgb(90, 18, 96)
HSLhsl(295, 68%, 22%)
HSVhsv(295, 81%, 38%)
CMYKcmyk(6.2%, 81.3%, 0%, 62.4%)
CIE-LABlab(21.77, 42.14, -29.11)
CIE-LCHlch(21.77, 51.22, 325.36°)
OKLaboklab(34.41% 0.1142 -0.0812)
OKLCHoklch(34.41% 0.14 324.6)
XYZxyz(6.5439, 3.4512, 11.3855)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1260 #186012
analogous
#331260 #5A1260 #60123F
triadic
#5A1260 #605A12 #12605A
tetradic
#5A1260 #603312 #186012 #123F60
square
#5A1260 #603312 #186012 #123F60
split-complementary
#5A1260 #3F6012 #126033
monochromatic
#18051A #2A082C #5A1260 #8A1C94 #BB25C7

Accessibility & contrast

On white

12.42
#5A1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1260
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1260#FFFFFF#000000##FFFFFF
##5A12601.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F62
Deuteranopia (green-blind)
#22375E
Tritanopia (blue-blind)
#5C2138
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1260;
/* rgb */ color: rgb(90, 18, 96);
/* oklch */ color: oklch(34.4% 0.140 324.6);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5a1260',
    950: '#000000',
  },
}
SCSS
$custom: #5a1260;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1260",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 295.385,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.14009,
    "h": 324.6
  },
  "luminance": 0.03451
}

Semantic roles & 50–950 ramp

primary
#5A1260
secondary
#3D9836
accent
#EB3D4A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1260

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

Preview Lab → · Contrast checker → · Palette generator →

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