#5A145D#5A145D

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

Color values

HEX#5A145D
RGBrgb(90, 20, 93)
HSLhsl(298, 65%, 22%)
HSVhsv(298, 78%, 36%)
CMYKcmyk(3.2%, 78.5%, 0%, 63.5%)
CIE-LABlab(21.82, 40.86, -27.04)
CIE-LCHlch(21.82, 49.00, 326.50°)
OKLaboklab(34.38% 0.1124 -0.0752)
OKLCHoklch(34.38% 0.135 326.2)
XYZxyz(6.4423, 3.4647, 10.6832)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A145D #175D14
analogous
#36145D #5A145D #5D143C
triadic
#5A145D #5D5A14 #145D5A
tetradic
#5A145D #5D3614 #175D14 #143C5D
square
#5A145D #5D3614 #175D14 #143C5D
split-complementary
#5A145D #3C5D14 #145D36
monochromatic
#180519 #29092B #5A145D #8B1F8F #BB2AC2

Accessibility & contrast

On white

12.41
#5A145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A145D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A145D#FFFFFF#000000##FFFFFF
##5A145D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F5F
Deuteranopia (green-blind)
#25375B
Tritanopia (blue-blind)
#5D2037
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a145d;
/* rgb */ color: rgb(90, 20, 93);
/* oklch */ color: oklch(34.4% 0.135 326.2);
Tailwind
colors: {
  custom: {
    50: '#8c5a8b',
    500: '#5a145d',
    950: '#000000',
  },
}
SCSS
$custom: #5a145d;
$custom-light: #8c5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a145d",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 297.534,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3438,
    "c": 0.1352,
    "h": 326.2
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#5A145D
secondary
#3C9538
accent
#E84047
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A145D

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

Preview Lab → · Contrast checker → · Palette generator →

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