#5A1768#5A1768

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

Color values

HEX#5A1768
RGBrgb(90, 23, 104)
HSLhsl(290, 64%, 25%)
HSVhsv(290, 78%, 41%)
CMYKcmyk(13.5%, 77.9%, 0%, 59.2%)
CIE-LABlab(22.95, 41.90, -32.46)
CIE-LCHlch(22.95, 53.00, 322.23°)
OKLaboklab(35.43% 0.1086 -0.091)
OKLCHoklch(35.43% 0.142 320)
XYZxyz(7.0212, 3.7863, 13.4550)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1768 #256817
analogous
#321768 #5A1768 #68174D
triadic
#5A1768 #685A17 #17685A
tetradic
#5A1768 #683217 #256817 #174D68
square
#5A1768 #683217 #256817 #174D68
split-complementary
#5A1768 #4D6817 #176832
monochromatic
#160619 #2F0C36 #5A1768 #85229A #B12DCC

Accessibility & contrast

On white

11.95
#5A1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1768
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1768#FFFFFF#000000##FFFFFF
##5A17681.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#1F3966
Tritanopia (blue-blind)
#5A273E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1768;
/* rgb */ color: rgb(90, 23, 104);
/* oklch */ color: oklch(35.4% 0.142 320.0);
Tailwind
colors: {
  custom: {
    50: '#8c5c94',
    500: '#5a1768',
    950: '#000000',
  },
}
SCSS
$custom: #5a1768;
$custom-light: #8c5c94;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1768",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 289.63,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35426,
    "c": 0.14168,
    "h": 320
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#5A1768
secondary
#4D9E3D
accent
#E7415E
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1768

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

Preview Lab → · Contrast checker → · Palette generator →

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