#5A1259#5A1259

#5A1259 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.134 H 328.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#5A1259
RGBrgb(90, 18, 89)
HSLhsl(301, 67%, 21%)
HSVhsv(301, 80%, 35%)
CMYKcmyk(0%, 80%, 1.1%, 64.7%)
CIE-LABlab(21.31, 40.83, -25.19)
CIE-LCHlch(21.31, 47.98, 328.33°)
OKLaboklab(33.94% 0.1145 -0.0697)
OKLCHoklch(33.94% 0.134 328.6)
XYZxyz(6.2359, 3.3280, 9.7632)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1259 #125A13
analogous
#37125A #5A1259 #5A1235
triadic
#5A1259 #595A12 #12595A
tetradic
#5A1259 #5A3712 #125A13 #12355A
square
#5A1259 #5A3712 #125A13 #12355A
split-complementary
#5A1259 #355A12 #125A37
monochromatic
#1A0519 #270827 #5A1259 #8D1C8B #C026BE

Accessibility & contrast

On white

12.61
#5A1259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A1259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1259
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1259#FFFFFF#000000##FFFFFF
##5A12591.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052D5B
Deuteranopia (green-blind)
#273657
Tritanopia (blue-blind)
#5D1D35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1259;
/* rgb */ color: rgb(90, 18, 89);
/* oklch */ color: oklch(33.9% 0.134 328.6);
Tailwind
colors: {
  custom: {
    50: '#8c5988',
    500: '#5a1259',
    950: '#000000',
  },
}
SCSS
$custom: #5a1259;
$custom-light: #8c5988;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1259",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 89
  },
  "hsl": {
    "h": 300.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33938,
    "c": 0.13404,
    "h": 328.6
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#5A1259
secondary
#359337
accent
#EA413E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1259

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

Preview Lab → · Contrast checker → · Palette generator →

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