#5A105F#5A105F

#5A105F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.141 H 325.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#5A105F
RGBrgb(90, 16, 95)
HSLhsl(296, 71%, 22%)
HSVhsv(296, 83%, 37%)
CMYKcmyk(5.3%, 83.2%, 0%, 62.7%)
CIE-LABlab(21.47, 42.61, -28.92)
CIE-LCHlch(21.47, 51.49, 325.83°)
OKLaboklab(34.18% 0.1161 -0.0806)
OKLCHoklch(34.18% 0.141 325.2)
XYZxyz(6.4671, 3.3709, 11.1343)
Luminance0.0337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A105F #155F10
analogous
#33105F #5A105F #5F103D
triadic
#5A105F #5F5A10 #105F5A
tetradic
#5A105F #5F3310 #155F10 #103D5F
square
#5A105F #5F3310 #155F10 #103D5F
split-complementary
#5A105F #3D5F10 #105F33
monochromatic
#19041A #28072B #5A105F #8C1993 #BD22C8

Accessibility & contrast

On white

12.54
#5A105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A105F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A105F#FFFFFF#000000##FFFFFF
##5A105F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#22375D
Tritanopia (blue-blind)
#5C1F37
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a105f;
/* rgb */ color: rgb(90, 16, 95);
/* oklch */ color: oklch(34.2% 0.141 325.2);
Tailwind
colors: {
  custom: {
    50: '#8c598d',
    500: '#5a105f',
    950: '#000000',
  },
}
SCSS
$custom: #5a105f;
$custom-light: #8c598d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a105f",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 296.203,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34177,
    "c": 0.14131,
    "h": 325.2
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#5A105F
secondary
#399833
accent
#EE3A45
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A105F

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

Preview Lab → · Contrast checker → · Palette generator →

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