#5D246B#5D246B

#5D246B is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.6% C 0.128 H 319.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5D246B
RGBrgb(93, 36, 107)
HSLhsl(288, 50%, 28%)
HSVhsv(288, 66%, 42%)
CMYKcmyk(13.1%, 66.4%, 0%, 58%)
CIE-LABlab(25.72, 37.46, -29.96)
CIE-LCHlch(25.72, 47.97, 321.35°)
OKLaboklab(37.57% 0.097 -0.0837)
OKLCHoklch(37.57% 0.128 319.2)
XYZxyz(7.7986, 4.6508, 14.3940)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D246B #326B24
analogous
#39246B #5D246B #6B2455
triadic
#5D246B #6B5D24 #246B5D
tetradic
#5D246B #6B3924 #326B24 #24556B
square
#5D246B #6B3924 #326B24 #24556B
split-complementary
#5D246B #556B24 #246B39
monochromatic
#140817 #35153D #5D246B #853399 #A948C1

Accessibility & contrast

On white

10.88
#5D246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D246B
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D246B#FFFFFF#000000##FFFFFF
##5D246B1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10396D
Deuteranopia (green-blind)
#293F69
Tritanopia (blue-blind)
#5D3044
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d246b;
/* rgb */ color: rgb(93, 36, 107);
/* oklch */ color: oklch(37.6% 0.128 319.2);
Tailwind
colors: {
  custom: {
    50: '#8d6396',
    500: '#5d246b',
    950: '#000000',
  },
}
SCSS
$custom: #5d246b;
$custom-light: #8d6396;
$custom-dark: #000000;
JSON
{
  "hex": "#5d246b",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 288.169,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37572,
    "c": 0.12811,
    "h": 319.2
  },
  "luminance": 0.0465
}

Semantic roles & 50–950 ramp

primary
#5D246B
secondary
#5D9E4D
accent
#D94F6A
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5D246B

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

Preview Lab → · Contrast checker → · Palette generator →

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