#5B246D#5B246D

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

Color values

HEX#5B246D
RGBrgb(91, 36, 109)
HSLhsl(285, 50%, 28%)
HSVhsv(285, 67%, 43%)
CMYKcmyk(16.5%, 67%, 0%, 57.3%)
CIE-LABlab(25.53, 37.37, -31.56)
CIE-LCHlch(25.53, 48.91, 319.82°)
OKLaboklab(37.42% 0.0943 -0.0884)
OKLCHoklch(37.42% 0.129 316.8)
XYZxyz(7.7052, 4.5903, 14.9452)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B246D #366D24
analogous
#36246D #5B246D #6D245A
triadic
#5B246D #6D5B24 #246D5B
tetradic
#5B246D #6D3624 #366D24 #245A6D
square
#5B246D #6D3624 #366D24 #245A6D
split-complementary
#5B246D #5A6D24 #246D36
monochromatic
#130817 #35153F #5B246D #81339B #A549C3

Accessibility & contrast

On white

10.95
#5B246D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B246D
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B246D#FFFFFF#000000##FFFFFF
##5B246D1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A396F
Deuteranopia (green-blind)
#253E6B
Tritanopia (blue-blind)
#5A3145
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b246d;
/* rgb */ color: rgb(91, 36, 109);
/* oklch */ color: oklch(37.4% 0.129 316.8);
Tailwind
colors: {
  custom: {
    50: '#8c6397',
    500: '#5b246d',
    950: '#000000',
  },
}
SCSS
$custom: #5b246d;
$custom-light: #8c6397;
$custom-dark: #000000;
JSON
{
  "hex": "#5b246d",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 109
  },
  "hsl": {
    "h": 285.205,
    "s": 50.345,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37418,
    "c": 0.12926,
    "h": 316.8
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

primary
#5B246D
secondary
#61A04D
accent
#DA4E70
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050D
muted
#7D7A7E

Preview Lab

Preview with #5B246D

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

Preview Lab → · Contrast checker → · Palette generator →

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