#5A246B#5A246B

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

Color values

HEX#5A246B
RGBrgb(90, 36, 107)
HSLhsl(286, 50%, 28%)
HSVhsv(286, 66%, 42%)
CMYKcmyk(15.9%, 66.4%, 0%, 58%)
CIE-LABlab(25.25, 36.66, -30.73)
CIE-LCHlch(25.25, 47.83, 320.03°)
OKLaboklab(37.14% 0.093 -0.086)
OKLCHoklch(37.14% 0.127 317.2)
XYZxyz(7.5008, 4.4972, 14.3800)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A246B #356B24
analogous
#36246B #5A246B #6B2458
triadic
#5A246B #6B5A24 #246B5A
tetradic
#5A246B #6B3624 #356B24 #24586B
square
#5A246B #6B3624 #356B24 #24586B
split-complementary
#5A246B #586B24 #246B36
monochromatic
#130817 #33153D #5A246B #813399 #A448C1

Accessibility & contrast

On white

11.06
#5A246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A246B
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A246B#FFFFFF#000000##FFFFFF
##5A246B1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D386D
Deuteranopia (green-blind)
#263E69
Tritanopia (blue-blind)
#593044
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a246b;
/* rgb */ color: rgb(90, 36, 107);
/* oklch */ color: oklch(37.1% 0.127 317.2);
Tailwind
colors: {
  custom: {
    50: '#8b6396',
    500: '#5a246b',
    950: '#000000',
  },
}
SCSS
$custom: #5a246b;
$custom-light: #8b6396;
$custom-dark: #000000;
JSON
{
  "hex": "#5a246b",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 285.634,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3714,
    "c": 0.12665,
    "h": 317.2
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#5A246B
secondary
#609E4D
accent
#D94F70
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5A246B

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

Preview Lab → · Contrast checker → · Palette generator →

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