#5D246E#5D246E

#5D246E is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.131 H 317.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#5D246E
RGBrgb(93, 36, 110)
HSLhsl(286, 51%, 29%)
HSVhsv(286, 67%, 43%)
CMYKcmyk(15.5%, 67.3%, 0%, 56.9%)
CIE-LABlab(25.91, 38.12, -31.59)
CIE-LCHlch(25.91, 49.50, 320.35°)
OKLaboklab(37.77% 0.097 -0.0884)
OKLCHoklch(37.77% 0.131 317.6)
XYZxyz(7.9592, 4.7150, 15.2397)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D246E #356E24
analogous
#38246E #5D246E #6E245A
triadic
#5D246E #6E5D24 #246E5D
tetradic
#5D246E #6E3824 #356E24 #245A6E
square
#5D246E #6E3824 #356E24 #245A6E
split-complementary
#5D246E #5A6E24 #246E38
monochromatic
#130817 #361540 #5D246E #84339C #A749C3

Accessibility & contrast

On white

10.81
#5D246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D246E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D246E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D246E#FFFFFF#000000##FFFFFF
##5D246E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3A70
Deuteranopia (green-blind)
#273F6C
Tritanopia (blue-blind)
#5C3145
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d246e;
/* rgb */ color: rgb(93, 36, 110);
/* oklch */ color: oklch(37.8% 0.131 317.6);
Tailwind
colors: {
  custom: {
    50: '#8d6398',
    500: '#5d246e',
    950: '#000000',
  },
}
SCSS
$custom: #5d246e;
$custom-light: #8d6398;
$custom-dark: #000000;
JSON
{
  "hex": "#5d246e",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 286.216,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.13126,
    "h": 317.6
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#5D246E
secondary
#60A14D
accent
#DA4E6E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5D246E

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

Preview Lab → · Contrast checker → · Palette generator →

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