#5A146B#5A146B

#5A146B is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.4% C 0.148 H 318.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#5A146B
RGBrgb(90, 20, 107)
HSLhsl(288, 69%, 25%)
HSVhsv(288, 81%, 42%)
CMYKcmyk(15.9%, 81.3%, 0%, 58%)
CIE-LABlab(22.78, 43.63, -34.69)
CIE-LCHlch(22.78, 55.74, 321.51°)
OKLaboklab(35.37% 0.1112 -0.0975)
OKLCHoklch(35.37% 0.148 318.7)
XYZxyz(7.1201, 3.7359, 14.2531)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A146B #256B14
analogous
#2F146B #5A146B #6B1450
triadic
#5A146B #6B5A14 #146B5A
tetradic
#5A146B #6B2F14 #256B14 #14506B
square
#5A146B #6B2F14 #256B14 #14506B
split-complementary
#5A146B #506B14 #146B2F
monochromatic
#16051A #2F0A37 #5A146B #851E9F #B127D2

Accessibility & contrast

On white

12.02
#5A146B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A146B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A146B
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A146B#FFFFFF#000000##FFFFFF
##5A146B1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#1A3969
Tritanopia (blue-blind)
#5A273F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a146b;
/* rgb */ color: rgb(90, 20, 107);
/* oklch */ color: oklch(35.4% 0.148 318.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b96',
    500: '#5a146b',
    950: '#000000',
  },
}
SCSS
$custom: #5a146b;
$custom-light: #8c5b96;
$custom-dark: #000000;
JSON
{
  "hex": "#5a146b",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 107
  },
  "hsl": {
    "h": 288.276,
    "s": 68.504,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35371,
    "c": 0.14786,
    "h": 318.7
  },
  "luminance": 0.03736
}

Semantic roles & 50–950 ramp

primary
#5A146B
secondary
#4DA239
accent
#EB3C5F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A146B

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

Preview Lab → · Contrast checker → · Palette generator →

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