#5A246A#5A246A

#5A246A is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.1% C 0.126 H 317.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5A246A
RGBrgb(90, 36, 106)
HSLhsl(286, 49%, 28%)
HSVhsv(286, 66%, 42%)
CMYKcmyk(15.1%, 66%, 0%, 58.4%)
CIE-LABlab(25.19, 36.44, -30.18)
CIE-LCHlch(25.19, 47.31, 320.36°)
OKLaboklab(37.07% 0.093 -0.0844)
OKLCHoklch(37.07% 0.126 317.7)
XYZxyz(7.4485, 4.4763, 14.1045)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A246A #346A24
analogous
#37246A #5A246A #6A2457
triadic
#5A246A #6A5A24 #246A5A
tetradic
#5A246A #6A3724 #346A24 #24576A
square
#5A246A #6A3724 #346A24 #24576A
split-complementary
#5A246A #576A24 #246A37
monochromatic
#130817 #33143C #5A246A #813498 #A548C1

Accessibility & contrast

On white

11.08
#5A246A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A246A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A246A
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A246A#FFFFFF#000000##FFFFFF
##5A246A1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F386C
Deuteranopia (green-blind)
#273D68
Tritanopia (blue-blind)
#5A3043
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a246a;
/* rgb */ color: rgb(90, 36, 106);
/* oklch */ color: oklch(37.1% 0.126 317.7);
Tailwind
colors: {
  custom: {
    50: '#8b6395',
    500: '#5a246a',
    950: '#000000',
  },
}
SCSS
$custom: #5a246a;
$custom-light: #8b6395;
$custom-dark: #000000;
JSON
{
  "hex": "#5a246a",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 106
  },
  "hsl": {
    "h": 286.286,
    "s": 49.296,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37073,
    "c": 0.12558,
    "h": 317.7
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#5A246A
secondary
#5F9D4D
accent
#D94F6E
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5A246A

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

Preview Lab → · Contrast checker → · Palette generator →

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