#5A246D#5A246D

#5A246D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.3% C 0.129 H 316.2°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5A246D
RGBrgb(90, 36, 109)
HSLhsl(284, 50%, 28%)
HSVhsv(284, 67%, 43%)
CMYKcmyk(17.4%, 67%, 0%, 57.3%)
CIE-LABlab(25.38, 37.11, -31.81)
CIE-LCHlch(25.38, 48.88, 319.40°)
OKLaboklab(37.28% 0.0929 -0.0892)
OKLCHoklch(37.28% 0.129 316.2)
XYZxyz(7.6072, 4.5398, 14.9406)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A246D #376D24
analogous
#35246D #5A246D #6D245B
triadic
#5A246D #6D5A24 #246D5A
tetradic
#5A246D #6D3524 #376D24 #245B6D
square
#5A246D #6D3524 #376D24 #245B6D
split-complementary
#5A246D #5B6D24 #246D35
monochromatic
#130817 #34153F #5A246D #80339B #A349C3

Accessibility & contrast

On white

11.01
#5A246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A246D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A246D#FFFFFF#000000##FFFFFF
##5A246D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09396F
Deuteranopia (green-blind)
#243E6B
Tritanopia (blue-blind)
#593145
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a246d;
/* rgb */ color: rgb(90, 36, 109);
/* oklch */ color: oklch(37.3% 0.129 316.2);
Tailwind
colors: {
  custom: {
    50: '#8b6397',
    500: '#5a246d',
    950: '#000000',
  },
}
SCSS
$custom: #5a246d;
$custom-light: #8b6397;
$custom-dark: #000000;
JSON
{
  "hex": "#5a246d",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 284.384,
    "s": 50.345,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37276,
    "c": 0.12881,
    "h": 316.2
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#5A246D
secondary
#62A04D
accent
#DA4E72
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5A246D

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

Preview Lab → · Contrast checker → · Palette generator →

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