#5A1850#5A1850

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

Color values

HEX#5A1850
RGBrgb(90, 24, 80)
HSLhsl(309, 58%, 22%)
HSVhsv(309, 73%, 35%)
CMYKcmyk(0%, 73.3%, 11.1%, 64.7%)
CIE-LABlab(21.60, 36.90, -18.69)
CIE-LCHlch(21.60, 41.36, 333.14°)
OKLaboklab(33.98% 0.1072 -0.051)
OKLCHoklch(33.98% 0.119 334.6)
XYZxyz(5.9911, 3.4066, 7.9299)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1850 #185A22
analogous
#43185A #5A1850 #5A182F
triadic
#5A1850 #505A18 #18505A
tetradic
#5A1850 #5A4318 #185A22 #182F5A
square
#5A1850 #5A4318 #185A22 #182F5A
split-complementary
#5A1850 #2F5A18 #185A43
monochromatic
#180615 #2A0B25 #5A1850 #8A257B #BB32A6

Accessibility & contrast

On white

12.49
#5A1850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5A1850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1850
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1850#FFFFFF#000000##FFFFFF
##5A18501.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E52
Deuteranopia (green-blind)
#2E374E
Tritanopia (blue-blind)
#5F1D31
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1850;
/* rgb */ color: rgb(90, 24, 80);
/* oklch */ color: oklch(34.0% 0.119 334.6);
Tailwind
colors: {
  custom: {
    50: '#8b5b81',
    500: '#5a1850',
    950: '#000000',
  },
}
SCSS
$custom: #5a1850;
$custom-light: #8b5b81;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1850",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 309.091,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33977,
    "c": 0.11876,
    "h": 334.6
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#5A1850
secondary
#3D914A
accent
#E15E47
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1850

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

Preview Lab → · Contrast checker → · Palette generator →

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