#5A145C#5A145C

#5A145C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.134 H 326.8°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#5A145C
RGBrgb(90, 20, 92)
HSLhsl(298, 64%, 22%)
HSVhsv(298, 78%, 36%)
CMYKcmyk(2.2%, 78.3%, 0%, 63.9%)
CIE-LABlab(21.75, 40.67, -26.48)
CIE-LCHlch(21.75, 48.53, 326.93°)
OKLaboklab(34.31% 0.1124 -0.0735)
OKLCHoklch(34.31% 0.134 326.8)
XYZxyz(6.3983, 3.4471, 10.4515)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A145C #165C14
analogous
#36145C #5A145C #5C143A
triadic
#5A145C #5C5A14 #145C5A
tetradic
#5A145C #5C3614 #165C14 #143A5C
square
#5A145C #5C3614 #165C14 #143A5C
split-complementary
#5A145C #3A5C14 #145C36
monochromatic
#190519 #29092A #5A145C #8B1F8E #BC2AC1

Accessibility & contrast

On white

12.43
#5A145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A145C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A145C#FFFFFF#000000##FFFFFF
##5A145C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032E5E
Deuteranopia (green-blind)
#26375A
Tritanopia (blue-blind)
#5D2037
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a145c;
/* rgb */ color: rgb(90, 20, 92);
/* oklch */ color: oklch(34.3% 0.134 326.8);
Tailwind
colors: {
  custom: {
    50: '#8b5a8a',
    500: '#5a145c',
    950: '#000000',
  },
}
SCSS
$custom: #5a145c;
$custom-light: #8b5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a145c",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 298.333,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34314,
    "c": 0.13432,
    "h": 326.8
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#5A145C
secondary
#3B9438
accent
#E74145
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A145C

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

Preview Lab → · Contrast checker → · Palette generator →

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