#5A1950#5A1950

#5A1950 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 34.1% C 0.117 H 334.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#5A1950
RGBrgb(90, 25, 80)
HSLhsl(309, 57%, 23%)
HSVhsv(309, 72%, 35%)
CMYKcmyk(0%, 72.2%, 11.1%, 64.7%)
CIE-LABlab(21.76, 36.47, -18.45)
CIE-LCHlch(21.76, 40.87, 333.17°)
OKLaboklab(34.09% 0.106 -0.0503)
OKLCHoklch(34.09% 0.117 334.6)
XYZxyz(6.0121, 3.4486, 7.9369)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1950 #195A23
analogous
#44195A #5A1950 #5A192F
triadic
#5A1950 #505A19 #19505A
tetradic
#5A1950 #5A4419 #195A23 #192F5A
square
#5A1950 #5A4419 #195A23 #192F5A
split-complementary
#5A1950 #2F5A19 #195A44
monochromatic
#180715 #2A0C25 #5A1950 #8A267B #BA34A5

Accessibility & contrast

On white

12.43
#5A1950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5A1950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1950
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1950#FFFFFF#000000##FFFFFF
##5A19501.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182E52
Deuteranopia (green-blind)
#2E384E
Tritanopia (blue-blind)
#5F1E32
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1950;
/* rgb */ color: rgb(90, 25, 80);
/* oklch */ color: oklch(34.1% 0.117 334.6);
Tailwind
colors: {
  custom: {
    50: '#8b5c81',
    500: '#5a1950',
    950: '#000000',
  },
}
SCSS
$custom: #5a1950;
$custom-light: #8b5c81;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1950",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 309.231,
    "s": 56.522,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34089,
    "c": 0.11732,
    "h": 334.6
  },
  "luminance": 0.03448
}

Semantic roles & 50–950 ramp

primary
#5A1950
secondary
#3E904B
accent
#E05F48
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1950

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

Preview Lab → · Contrast checker → · Palette generator →

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