#5A146F#5A146F

#5A146F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.152 H 316.8°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#5A146F
RGBrgb(90, 20, 111)
HSLhsl(286, 69%, 26%)
HSVhsv(286, 82%, 44%)
CMYKcmyk(18.9%, 82%, 0%, 56.5%)
CIE-LABlab(23.07, 44.46, -36.81)
CIE-LCHlch(23.07, 57.71, 320.38°)
OKLaboklab(35.67% 0.1105 -0.1037)
OKLCHoklch(35.67% 0.152 316.8)
XYZxyz(7.3354, 3.8220, 15.3872)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A146F #296F14
analogous
#2C146F #5A146F #6F1456
triadic
#5A146F #6F5A14 #146F5A
tetradic
#5A146F #6F2C14 #296F14 #14566F
square
#5A146F #6F2C14 #296F14 #14566F
split-complementary
#5A146F #566F14 #146F2C
monochromatic
#15051A #300B3B #5A146F #841DA3 #AE27D7

Accessibility & contrast

On white

11.90
#5A146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A146F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A146F#FFFFFF#000000##FFFFFF
##5A146F1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#15396D
Tritanopia (blue-blind)
#592941
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a146f;
/* rgb */ color: rgb(90, 20, 111);
/* oklch */ color: oklch(35.7% 0.152 316.8);
Tailwind
colors: {
  custom: {
    50: '#8c5b99',
    500: '#5a146f',
    950: '#000000',
  },
}
SCSS
$custom: #5a146f;
$custom-light: #8c5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5a146f",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 286.154,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35673,
    "c": 0.15157,
    "h": 316.8
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#5A146F
secondary
#52A639
accent
#EC3C64
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A146F

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

Preview Lab → · Contrast checker → · Palette generator →

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