#5A105C#5A105C

#5A105C is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.139 H 326.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#5A105C
RGBrgb(90, 16, 92)
HSLhsl(298, 70%, 21%)
HSVhsv(298, 83%, 36%)
CMYKcmyk(2.2%, 82.6%, 0%, 63.9%)
CIE-LABlab(21.27, 42.05, -27.25)
CIE-LCHlch(21.27, 50.11, 327.06°)
OKLaboklab(33.97% 0.1163 -0.0757)
OKLCHoklch(33.97% 0.139 326.9)
XYZxyz(6.3334, 3.3174, 10.4299)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A105C #125C10
analogous
#34105C #5A105C #5C1038
triadic
#5A105C #5C5A10 #105C5A
tetradic
#5A105C #5C3410 #125C10 #10385C
square
#5A105C #5C3410 #125C10 #10385C
split-complementary
#5A105C #385C10 #105C34
monochromatic
#19051A #270728 #5A105C #8D1990 #C022C4

Accessibility & contrast

On white

12.62
#5A105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A105C
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A105C#FFFFFF#000000##FFFFFF
##5A105C1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#24365A
Tritanopia (blue-blind)
#5D1D36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a105c;
/* rgb */ color: rgb(90, 16, 92);
/* oklch */ color: oklch(34.0% 0.139 326.9);
Tailwind
colors: {
  custom: {
    50: '#8c598a',
    500: '#5a105c',
    950: '#000000',
  },
}
SCSS
$custom: #5a105c;
$custom-light: #8c598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a105c",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 298.421,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33972,
    "c": 0.13875,
    "h": 326.9
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#5A105C
secondary
#359533
accent
#ED3B3F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A105C

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

Preview Lab → · Contrast checker → · Palette generator →

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