#5A145B#5A145B

#5A145B is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.133 H 327.4°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#5A145B
RGBrgb(90, 20, 91)
HSLhsl(299, 64%, 22%)
HSVhsv(299, 78%, 36%)
CMYKcmyk(1.1%, 78%, 0%, 64.3%)
CIE-LABlab(21.69, 40.48, -25.92)
CIE-LCHlch(21.69, 48.07, 327.37°)
OKLaboklab(34.25% 0.1124 -0.0719)
OKLCHoklch(34.25% 0.133 327.4)
XYZxyz(6.3548, 3.4298, 10.2228)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A145B #155B14
analogous
#37145B #5A145B #5B1439
triadic
#5A145B #5B5A14 #145B5A
tetradic
#5A145B #5B3714 #155B14 #14395B
square
#5A145B #5B3714 #155B14 #14395B
split-complementary
#5A145B #395B14 #145B37
monochromatic
#190619 #280929 #5A145B #8C1F8D #BD2ABF

Accessibility & contrast

On white

12.46
#5A145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A145B
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A145B#FFFFFF#000000##FFFFFF
##5A145B1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5D
Deuteranopia (green-blind)
#263759
Tritanopia (blue-blind)
#5D1F36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a145b;
/* rgb */ color: rgb(90, 20, 91);
/* oklch */ color: oklch(34.2% 0.133 327.4);
Tailwind
colors: {
  custom: {
    50: '#8b5a8a',
    500: '#5a145b',
    950: '#000000',
  },
}
SCSS
$custom: #5a145b;
$custom-light: #8b5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a145b",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 299.155,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34248,
    "c": 0.13344,
    "h": 327.4
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#5A145B
secondary
#399338
accent
#E74143
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A145B

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

Preview Lab → · Contrast checker → · Palette generator →

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