#5A1365#5A1365

#5A1365 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.143 H 321.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#5A1365
RGBrgb(90, 19, 101)
HSLhsl(292, 68%, 24%)
HSVhsv(292, 81%, 40%)
CMYKcmyk(10.9%, 81.2%, 0%, 60.4%)
CIE-LABlab(22.23, 42.77, -31.66)
CIE-LCHlch(22.23, 53.21, 323.49°)
OKLaboklab(34.85% 0.1128 -0.0886)
OKLCHoklch(34.85% 0.143 321.9)
XYZxyz(6.7980, 3.5794, 12.6422)
Luminance0.0358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1365 #1E6513
analogous
#311365 #5A1365 #651347
triadic
#5A1365 #655A13 #13655A
tetradic
#5A1365 #653113 #1E6513 #134765
square
#5A1365 #653113 #1E6513 #134765
split-complementary
#5A1365 #476513 #136531
monochromatic
#17051A #2C0931 #5A1365 #881D99 #B626CC

Accessibility & contrast

On white

12.24
#5A1365 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A1365 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1365
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1365#FFFFFF#000000##FFFFFF
##5A13651.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#1F3863
Tritanopia (blue-blind)
#5B243C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1365;
/* rgb */ color: rgb(90, 19, 101);
/* oklch */ color: oklch(34.8% 0.143 321.9);
Tailwind
colors: {
  custom: {
    50: '#8c5a91',
    500: '#5a1365',
    950: '#000000',
  },
}
SCSS
$custom: #5a1365;
$custom-light: #8c5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1365",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 101
  },
  "hsl": {
    "h": 291.951,
    "s": 68.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34846,
    "c": 0.14346,
    "h": 321.9
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#5A1365
secondary
#459D37
accent
#EB3D54
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1365

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

Preview Lab → · Contrast checker → · Palette generator →

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