#5A1769#5A1769

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

Color values

HEX#5A1769
RGBrgb(90, 23, 105)
HSLhsl(289, 64%, 25%)
HSVhsv(289, 78%, 41%)
CMYKcmyk(14.3%, 78.1%, 0%, 58.8%)
CIE-LABlab(23.02, 42.10, -33.00)
CIE-LCHlch(23.02, 53.50, 321.91°)
OKLaboklab(35.5% 0.1085 -0.0926)
OKLCHoklch(35.5% 0.143 319.5)
XYZxyz(7.0723, 3.8067, 13.7241)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1769 #266917
analogous
#311769 #5A1769 #69174F
triadic
#5A1769 #695A17 #17695A
tetradic
#5A1769 #693117 #266917 #174F69
square
#5A1769 #693117 #266917 #174F69
split-complementary
#5A1769 #4F6917 #176931
monochromatic
#160519 #2F0C37 #5A1769 #85229B #B02DCD

Accessibility & contrast

On white

11.92
#5A1769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1769
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1769#FFFFFF#000000##FFFFFF
##5A17691.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326B
Deuteranopia (green-blind)
#1E3967
Tritanopia (blue-blind)
#5A283F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1769;
/* rgb */ color: rgb(90, 23, 105);
/* oklch */ color: oklch(35.5% 0.143 319.5);
Tailwind
colors: {
  custom: {
    50: '#8c5c94',
    500: '#5a1769',
    950: '#000000',
  },
}
SCSS
$custom: #5a1769;
$custom-light: #8c5c94;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1769",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 289.024,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35498,
    "c": 0.14261,
    "h": 319.5
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#5A1769
secondary
#4F9F3D
accent
#E7415F
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1769

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

Preview Lab → · Contrast checker → · Palette generator →

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