#5A1765#5A1765

#5A1765 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.139 H 321.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#5A1765
RGBrgb(90, 23, 101)
HSLhsl(292, 63%, 24%)
HSVhsv(292, 77%, 40%)
CMYKcmyk(10.9%, 77.2%, 0%, 60.4%)
CIE-LABlab(22.75, 41.29, -30.83)
CIE-LCHlch(22.75, 51.53, 323.25°)
OKLaboklab(35.21% 0.1088 -0.0862)
OKLCHoklch(35.21% 0.139 321.6)
XYZxyz(6.8716, 3.7264, 12.6667)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1765 #226517
analogous
#331765 #5A1765 #651749
triadic
#5A1765 #655A17 #17655A
tetradic
#5A1765 #653317 #226517 #174965
square
#5A1765 #653317 #226517 #174965
split-complementary
#5A1765 #496517 #176533
monochromatic
#160619 #2E0C33 #5A1765 #862297 #B32EC9

Accessibility & contrast

On white

12.03
#5A1765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A1765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1765
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1765#FFFFFF#000000##FFFFFF
##5A17651.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#213963
Tritanopia (blue-blind)
#5B263D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1765;
/* rgb */ color: rgb(90, 23, 101);
/* oklch */ color: oklch(35.2% 0.139 321.6);
Tailwind
colors: {
  custom: {
    50: '#8c5c91',
    500: '#5a1765',
    950: '#000000',
  },
}
SCSS
$custom: #5a1765;
$custom-light: #8c5c91;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1765",
  "rgb": {
    "r": 90,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 291.538,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35213,
    "c": 0.13886,
    "h": 321.6
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#5A1765
secondary
#4A9B3C
accent
#E64259
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1765

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

Preview Lab → · Contrast checker → · Palette generator →

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