#5A165F#5A165F

#5A165F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.135 H 325.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#5A165F
RGBrgb(90, 22, 95)
HSLhsl(296, 62%, 23%)
HSVhsv(296, 77%, 37%)
CMYKcmyk(5.3%, 76.8%, 0%, 62.7%)
CIE-LABlab(22.21, 40.49, -27.74)
CIE-LCHlch(22.21, 49.08, 325.58°)
OKLaboklab(34.7% 0.1102 -0.0772)
OKLCHoklch(34.7% 0.135 325)
XYZxyz(6.5688, 3.5741, 11.1681)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A165F #1B5F16
analogous
#35165F #5A165F #5F163F
triadic
#5A165F #5F5A16 #165F5A
tetradic
#5A165F #5F3516 #1B5F16 #163F5F
square
#5A165F #5F3516 #1B5F16 #163F5F
split-complementary
#5A165F #3F5F16 #165F35
monochromatic
#180619 #2B0A2D #5A165F #892291 #B82DC2

Accessibility & contrast

On white

12.25
#5A165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A165F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A165F#FFFFFF#000000##FFFFFF
##5A165F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023061
Deuteranopia (green-blind)
#25385D
Tritanopia (blue-blind)
#5C2239
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a165f;
/* rgb */ color: rgb(90, 22, 95);
/* oklch */ color: oklch(34.7% 0.135 325.0);
Tailwind
colors: {
  custom: {
    50: '#8b5b8d',
    500: '#5a165f',
    950: '#000000',
  },
}
SCSS
$custom: #5a165f;
$custom-light: #8b5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a165f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 295.89,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34703,
    "c": 0.13457,
    "h": 325
  },
  "luminance": 0.03574
}

Semantic roles & 50–950 ramp

primary
#5A165F
secondary
#41963B
accent
#E5424E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A165F

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

Preview Lab → · Contrast checker → · Palette generator →

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