#5A1655#5A1655

#5A1655 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.126 H 331.1°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#5A1655
RGBrgb(90, 22, 85)
HSLhsl(304, 61%, 22%)
HSVhsv(304, 76%, 35%)
CMYKcmyk(0%, 75.6%, 5.6%, 64.7%)
CIE-LABlab(21.59, 38.61, -22.07)
CIE-LCHlch(21.59, 44.47, 330.25°)
OKLaboklab(34.06% 0.1101 -0.0607)
OKLCHoklch(34.06% 0.126 331.1)
XYZxyz(6.1430, 3.4038, 8.9260)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1655 #165A1B
analogous
#3D165A #5A1655 #5A1633
triadic
#5A1655 #555A16 #16555A
tetradic
#5A1655 #5A3D16 #165A1B #16335A
square
#5A1655 #5A3D16 #165A1B #16335A
split-complementary
#5A1655 #335A16 #165A3D
monochromatic
#190617 #290A27 #5A1655 #8B2283 #BC2EB2

Accessibility & contrast

On white

12.50
#5A1655 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A1655 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1655
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1655#FFFFFF#000000##FFFFFF
##5A16551.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112E57
Deuteranopia (green-blind)
#2B3753
Tritanopia (blue-blind)
#5E1E33
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1655;
/* rgb */ color: rgb(90, 22, 85);
/* oklch */ color: oklch(34.1% 0.126 331.1);
Tailwind
colors: {
  custom: {
    50: '#8b5b85',
    500: '#5a1655',
    950: '#000000',
  },
}
SCSS
$custom: #5a1655;
$custom-light: #8b5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1655",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 85
  },
  "hsl": {
    "h": 304.412,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34061,
    "c": 0.12573,
    "h": 331.1
  },
  "luminance": 0.03403
}

Semantic roles & 50–950 ramp

primary
#5A1655
secondary
#3B9141
accent
#E45044
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1655

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

Preview Lab → · Contrast checker → · Palette generator →

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