#5A146C#5A146C

#5A146C is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.149 H 318.3°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5A146C
RGBrgb(90, 20, 108)
HSLhsl(288, 69%, 25%)
HSVhsv(288, 81%, 42%)
CMYKcmyk(16.7%, 81.5%, 0%, 57.6%)
CIE-LABlab(22.85, 43.83, -35.22)
CIE-LCHlch(22.85, 56.23, 321.22°)
OKLaboklab(35.45% 0.111 -0.0991)
OKLCHoklch(35.45% 0.149 318.3)
XYZxyz(7.1730, 3.7570, 14.5318)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A146C #266C14
analogous
#2E146C #5A146C #6C1452
triadic
#5A146C #6C5A14 #146C5A
tetradic
#5A146C #6C2E14 #266C14 #14526C
square
#5A146C #6C2E14 #266C14 #14526C
split-complementary
#5A146C #526C14 #146C2E
monochromatic
#16051A #2F0A38 #5A146C #851EA0 #B027D3

Accessibility & contrast

On white

11.99
#5A146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A146C
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A146C#FFFFFF#000000##FFFFFF
##5A146C1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#18396A
Tritanopia (blue-blind)
#592740
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a146c;
/* rgb */ color: rgb(90, 20, 108);
/* oklch */ color: oklch(35.4% 0.149 318.3);
Tailwind
colors: {
  custom: {
    50: '#8c5b97',
    500: '#5a146c',
    950: '#000000',
  },
}
SCSS
$custom: #5a146c;
$custom-light: #8c5b97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a146c",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 287.727,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35446,
    "c": 0.14878,
    "h": 318.3
  },
  "luminance": 0.03757
}

Semantic roles & 50–950 ramp

primary
#5A146C
secondary
#4FA339
accent
#EC3C60
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A146C

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

Preview Lab → · Contrast checker → · Palette generator →

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