#5A1468#5A1468

#5A1468 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.145 H 320.2°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#5A1468
RGBrgb(90, 20, 104)
HSLhsl(290, 68%, 24%)
HSVhsv(290, 81%, 41%)
CMYKcmyk(13.5%, 80.8%, 0%, 59.2%)
CIE-LABlab(22.56, 43.02, -33.09)
CIE-LCHlch(22.56, 54.27, 322.44°)
OKLaboklab(35.15% 0.1116 -0.0928)
OKLCHoklch(35.15% 0.145 320.2)
XYZxyz(6.9650, 3.6738, 13.4363)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1468 #226814
analogous
#301468 #5A1468 #68144C
triadic
#5A1468 #685A14 #14685A
tetradic
#5A1468 #683014 #226814 #144C68
square
#5A1468 #683014 #226814 #144C68
split-complementary
#5A1468 #4C6814 #146830
monochromatic
#16051A #2E0A35 #5A1468 #861E9B #B328CF

Accessibility & contrast

On white

12.11
#5A1468 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5A1468 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1468
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1468#FFFFFF#000000##FFFFFF
##5A14681.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#1D3866
Tritanopia (blue-blind)
#5A253D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1468;
/* rgb */ color: rgb(90, 20, 104);
/* oklch */ color: oklch(35.1% 0.145 320.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b94',
    500: '#5a1468',
    950: '#000000',
  },
}
SCSS
$custom: #5a1468;
$custom-light: #8c5b94;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1468",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 104
  },
  "hsl": {
    "h": 290,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35149,
    "c": 0.14511,
    "h": 320.2
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#5A1468
secondary
#4A9F39
accent
#EB3D5A
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1468

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

Preview Lab → · Contrast checker → · Palette generator →

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