#5A146E#5A146E

#5A146E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.151 H 317.3°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#5A146E
RGBrgb(90, 20, 110)
HSLhsl(287, 69%, 25%)
HSVhsv(287, 82%, 43%)
CMYKcmyk(18.2%, 81.8%, 0%, 56.9%)
CIE-LABlab(23.00, 44.25, -36.28)
CIE-LCHlch(23.00, 57.22, 320.65°)
OKLaboklab(35.6% 0.1107 -0.1022)
OKLCHoklch(35.6% 0.151 317.3)
XYZxyz(7.2807, 3.8001, 15.0988)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A146E #286E14
analogous
#2D146E #5A146E #6E1455
triadic
#5A146E #6E5A14 #146E5A
tetradic
#5A146E #6E2D14 #286E14 #14556E
square
#5A146E #6E2D14 #286E14 #14556E
split-complementary
#5A146E #556E14 #146E2D
monochromatic
#15051A #300B3A #5A146E #841DA2 #AF27D6

Accessibility & contrast

On white

11.93
#5A146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A146E
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A146E#FFFFFF#000000##FFFFFF
##5A146E1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#16396C
Tritanopia (blue-blind)
#592841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a146e;
/* rgb */ color: rgb(90, 20, 110);
/* oklch */ color: oklch(35.6% 0.151 317.3);
Tailwind
colors: {
  custom: {
    50: '#8c5b98',
    500: '#5a146e',
    950: '#000000',
  },
}
SCSS
$custom: #5a146e;
$custom-light: #8c5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a146e",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 286.667,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35597,
    "c": 0.15064,
    "h": 317.3
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#5A146E
secondary
#51A539
accent
#EC3C63
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A146E

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

Preview Lab → · Contrast checker → · Palette generator →

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