#5A146D#5A146D

#5A146D is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.150 H 317.8°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5A146D
RGBrgb(90, 20, 109)
HSLhsl(287, 69%, 25%)
HSVhsv(287, 82%, 43%)
CMYKcmyk(17.4%, 81.7%, 0%, 57.3%)
CIE-LABlab(22.92, 44.04, -35.75)
CIE-LCHlch(22.92, 56.73, 320.93°)
OKLaboklab(35.52% 0.1109 -0.1006)
OKLCHoklch(35.52% 0.15 317.8)
XYZxyz(7.2265, 3.7784, 14.8137)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A146D #276D14
analogous
#2D146D #5A146D #6D1453
triadic
#5A146D #6D5A14 #146D5A
tetradic
#5A146D #6D2D14 #276D14 #14536D
square
#5A146D #6D2D14 #276D14 #14536D
split-complementary
#5A146D #536D14 #146D2D
monochromatic
#15051A #2F0B39 #5A146D #851DA1 #AF27D4

Accessibility & contrast

On white

11.96
#5A146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5A146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A146D
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A146D#FFFFFF#000000##FFFFFF
##5A146D1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#17396B
Tritanopia (blue-blind)
#592840
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a146d;
/* rgb */ color: rgb(90, 20, 109);
/* oklch */ color: oklch(35.5% 0.150 317.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b97',
    500: '#5a146d',
    950: '#000000',
  },
}
SCSS
$custom: #5a146d;
$custom-light: #8c5b97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a146d",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 287.191,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35521,
    "c": 0.14971,
    "h": 317.8
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#5A146D
secondary
#50A439
accent
#EC3C62
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A146D

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

Preview Lab → · Contrast checker → · Palette generator →

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