#5B246E#5B246E

#5B246E is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.5% C 0.130 H 316.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5B246E
RGBrgb(91, 36, 110)
HSLhsl(285, 51%, 29%)
HSVhsv(285, 67%, 43%)
CMYKcmyk(17.3%, 67.3%, 0%, 56.9%)
CIE-LABlab(25.60, 37.59, -32.10)
CIE-LCHlch(25.60, 49.43, 319.51°)
OKLaboklab(37.49% 0.0943 -0.09)
OKLCHoklch(37.49% 0.13 316.3)
XYZxyz(7.7593, 4.6120, 15.2303)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B246E #376E24
analogous
#36246E #5B246E #6E245C
triadic
#5B246E #6E5B24 #246E5B
tetradic
#5B246E #6E3624 #376E24 #245C6E
square
#5B246E #6E3624 #376E24 #245C6E
split-complementary
#5B246E #5C6E24 #246E36
monochromatic
#130817 #351540 #5B246E #81339C #A449C3

Accessibility & contrast

On white

10.92
#5B246E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B246E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B246E#FFFFFF#000000##FFFFFF
##5B246E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083970
Deuteranopia (green-blind)
#243E6C
Tritanopia (blue-blind)
#5A3145
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b246e;
/* rgb */ color: rgb(91, 36, 110);
/* oklch */ color: oklch(37.5% 0.130 316.3);
Tailwind
colors: {
  custom: {
    50: '#8c6398',
    500: '#5b246e',
    950: '#000000',
  },
}
SCSS
$custom: #5b246e;
$custom-light: #8c6398;
$custom-dark: #000000;
JSON
{
  "hex": "#5b246e",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 110
  },
  "hsl": {
    "h": 284.595,
    "s": 50.685,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37486,
    "c": 0.13034,
    "h": 316.3
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#5B246E
secondary
#62A14D
accent
#DA4E72
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B246E

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

Preview Lab → · Contrast checker → · Palette generator →

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