#5A1963#5A1963

#5A1963 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.134 H 322.6°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#5A1963
RGBrgb(90, 25, 99)
HSLhsl(293, 60%, 24%)
HSVhsv(293, 75%, 39%)
CMYKcmyk(9.1%, 74.7%, 0%, 61.2%)
CIE-LABlab(22.90, 40.07, -29.28)
CIE-LCHlch(22.90, 49.63, 323.85°)
OKLaboklab(35.28% 0.1068 -0.0817)
OKLCHoklch(35.28% 0.134 322.6)
XYZxyz(6.8160, 3.7702, 12.1707)
Luminance0.0377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1963 #226319
analogous
#351963 #5A1963 #631947
triadic
#5A1963 #635A19 #19635A
tetradic
#5A1963 #633519 #226319 #194763
square
#5A1963 #633519 #226319 #194763
split-complementary
#5A1963 #476319 #196335
monochromatic
#160618 #2E0D32 #5A1963 #862594 #B332C5

Accessibility & contrast

On white

11.97
#5A1963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1963
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1963#FFFFFF#000000##FFFFFF
##5A19631.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013265
Deuteranopia (green-blind)
#243961
Tritanopia (blue-blind)
#5B263C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1963;
/* rgb */ color: rgb(90, 25, 99);
/* oklch */ color: oklch(35.3% 0.134 322.6);
Tailwind
colors: {
  custom: {
    50: '#8b5d90',
    500: '#5a1963',
    950: '#000000',
  },
}
SCSS
$custom: #5a1963;
$custom-light: #8b5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1963",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 292.703,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35278,
    "c": 0.13445,
    "h": 322.6
  },
  "luminance": 0.0377
}

Semantic roles & 50–950 ramp

primary
#5A1963
secondary
#4A993F
accent
#E34558
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1963

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

Preview Lab → · Contrast checker → · Palette generator →

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