#5A246E#5A246E

#5A246E is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.3% C 0.130 H 315.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5A246E
RGBrgb(90, 36, 110)
HSLhsl(284, 51%, 29%)
HSVhsv(284, 67%, 43%)
CMYKcmyk(18.2%, 67.3%, 0%, 56.9%)
CIE-LABlab(25.45, 37.34, -32.35)
CIE-LCHlch(25.45, 49.40, 319.09°)
OKLaboklab(37.34% 0.0929 -0.0908)
OKLCHoklch(37.34% 0.13 315.7)
XYZxyz(7.6614, 4.5615, 15.2257)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A246E #386E24
analogous
#35246E #5A246E #6E245D
triadic
#5A246E #6E5A24 #246E5A
tetradic
#5A246E #6E3524 #386E24 #245D6E
square
#5A246E #6E3524 #386E24 #245D6E
split-complementary
#5A246E #5D6E24 #246E35
monochromatic
#130817 #341540 #5A246E #80339C #A249C3

Accessibility & contrast

On white

10.98
#5A246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5A246E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A246E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A246E#FFFFFF#000000##FFFFFF
##5A246E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073970
Deuteranopia (green-blind)
#233E6C
Tritanopia (blue-blind)
#593245
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a246e;
/* rgb */ color: rgb(90, 36, 110);
/* oklch */ color: oklch(37.3% 0.130 315.7);
Tailwind
colors: {
  custom: {
    50: '#8b6398',
    500: '#5a246e',
    950: '#000000',
  },
}
SCSS
$custom: #5a246e;
$custom-light: #8b6398;
$custom-dark: #000000;
JSON
{
  "hex": "#5a246e",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 283.784,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37344,
    "c": 0.12989,
    "h": 315.7
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#5A246E
secondary
#64A14D
accent
#DA4E74
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5A246E

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

Preview Lab → · Contrast checker → · Palette generator →

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