#5A246F#5A246F

#5A246F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.4% C 0.131 H 315.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5A246F
RGBrgb(90, 36, 111)
HSLhsl(283, 51%, 29%)
HSVhsv(283, 68%, 44%)
CMYKcmyk(18.9%, 67.6%, 0%, 56.5%)
CIE-LABlab(25.51, 37.56, -32.89)
CIE-LCHlch(25.51, 49.92, 318.80°)
OKLaboklab(37.41% 0.0929 -0.0923)
OKLCHoklch(37.41% 0.131 315.2)
XYZxyz(7.7161, 4.5834, 15.5141)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A246F #396F24
analogous
#35246F #5A246F #6F245F
triadic
#5A246F #6F5A24 #246F5A
tetradic
#5A246F #6F3524 #396F24 #245F6F
square
#5A246F #6F3524 #396F24 #245F6F
split-complementary
#5A246F #5F6F24 #246F35
monochromatic
#130717 #351541 #5A246F #7F339D #A249C4

Accessibility & contrast

On white

10.96
#5A246F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5A246F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A246F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A246F#FFFFFF#000000##FFFFFF
##5A246F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053971
Deuteranopia (green-blind)
#233E6D
Tritanopia (blue-blind)
#583246
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a246f;
/* rgb */ color: rgb(90, 36, 111);
/* oklch */ color: oklch(37.4% 0.131 315.2);
Tailwind
colors: {
  custom: {
    50: '#8b6399',
    500: '#5a246f',
    950: '#000000',
  },
}
SCSS
$custom: #5a246f;
$custom-light: #8b6399;
$custom-dark: #000000;
JSON
{
  "hex": "#5a246f",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 111
  },
  "hsl": {
    "h": 283.2,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37414,
    "c": 0.13097,
    "h": 315.2
  },
  "luminance": 0.04583
}

Semantic roles & 50–950 ramp

primary
#5A246F
secondary
#65A24D
accent
#DA4D75
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5A246F

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

Preview Lab → · Contrast checker → · Palette generator →

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