#5A246C#5A246C

#5A246C is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.2% C 0.128 H 316.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#5A246C
RGBrgb(90, 36, 108)
HSLhsl(285, 50%, 28%)
HSVhsv(285, 67%, 42%)
CMYKcmyk(16.7%, 66.7%, 0%, 57.6%)
CIE-LABlab(25.32, 36.88, -31.27)
CIE-LCHlch(25.32, 48.35, 319.71°)
OKLaboklab(37.21% 0.093 -0.0876)
OKLCHoklch(37.21% 0.128 316.7)
XYZxyz(7.5537, 4.5184, 14.6587)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A246C #366C24
analogous
#36246C #5A246C #6C245A
triadic
#5A246C #6C5A24 #246C5A
tetradic
#5A246C #6C3624 #366C24 #245A6C
square
#5A246C #6C3624 #366C24 #245A6C
split-complementary
#5A246C #5A6C24 #246C36
monochromatic
#130817 #34153E #5A246C #80339A #A448C2

Accessibility & contrast

On white

11.03
#5A246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A246C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A246C#FFFFFF#000000##FFFFFF
##5A246C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B396E
Deuteranopia (green-blind)
#253E6A
Tritanopia (blue-blind)
#593144
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a246c;
/* rgb */ color: rgb(90, 36, 108);
/* oklch */ color: oklch(37.2% 0.128 316.7);
Tailwind
colors: {
  custom: {
    50: '#8b6396',
    500: '#5a246c',
    950: '#000000',
  },
}
SCSS
$custom: #5a246c;
$custom-light: #8b6396;
$custom-dark: #000000;
JSON
{
  "hex": "#5a246c",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 285,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37208,
    "c": 0.12773,
    "h": 316.7
  },
  "luminance": 0.04518
}

Semantic roles & 50–950 ramp

primary
#5A246C
secondary
#619F4D
accent
#DA4E71
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5A246C

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

Preview Lab → · Contrast checker → · Palette generator →

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