#5A105B#5A105B

#5A105B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.138 H 327.5°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#5A105B
RGBrgb(90, 16, 91)
HSLhsl(299, 70%, 21%)
HSVhsv(299, 82%, 36%)
CMYKcmyk(1.1%, 82.4%, 0%, 64.3%)
CIE-LABlab(21.21, 41.87, -26.69)
CIE-LCHlch(21.21, 49.65, 327.49°)
OKLaboklab(33.9% 0.1163 -0.0741)
OKLCHoklch(33.9% 0.138 327.5)
XYZxyz(6.2900, 3.3000, 10.2012)
Luminance0.0330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A105B #115B10
analogous
#34105B #5A105B #5B1036
triadic
#5A105B #5B5A10 #105B5A
tetradic
#5A105B #5B3410 #115B10 #10365B
square
#5A105B #5B3410 #115B10 #10365B
split-complementary
#5A105B #365B10 #105B34
monochromatic
#1A051A #270727 #5A105B #8D198F #C122C3

Accessibility & contrast

On white

12.65
#5A105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A105B
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A105B#FFFFFF#000000##FFFFFF
##5A105B1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#253659
Tritanopia (blue-blind)
#5D1D35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a105b;
/* rgb */ color: rgb(90, 16, 91);
/* oklch */ color: oklch(33.9% 0.138 327.5);
Tailwind
colors: {
  custom: {
    50: '#8c588a',
    500: '#5a105b',
    950: '#000000',
  },
}
SCSS
$custom: #5a105b;
$custom-light: #8c588a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a105b",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 299.2,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33904,
    "c": 0.13791,
    "h": 327.5
  },
  "luminance": 0.033
}

Semantic roles & 50–950 ramp

primary
#5A105B
secondary
#349433
accent
#ED3B3D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A105B

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

Preview Lab → · Contrast checker → · Palette generator →

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