#5B247A#5B247A

#5B247A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.143 H 310.7°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#5B247A
RGBrgb(91, 36, 122)
HSLhsl(278, 54%, 31%)
HSVhsv(278, 70%, 48%)
CMYKcmyk(25.4%, 70.5%, 0%, 52.2%)
CIE-LABlab(26.42, 40.37, -38.44)
CIE-LCHlch(26.42, 55.74, 316.40°)
OKLaboklab(38.34% 0.0935 -0.1086)
OKLCHoklch(38.34% 0.143 310.7)
XYZxyz(8.4574, 4.8912, 18.9072)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B247A #437A24
analogous
#30247A #5B247A #7A246E
triadic
#5B247A #7A5B24 #247A5B
tetradic
#5B247A #7A3024 #437A24 #246E7A
square
#5B247A #7A3024 #437A24 #246E7A
split-complementary
#5B247A #6E7A24 #247A30
monochromatic
#15081B #38164B #5B247A #7E32A9 #9E4ECB

Accessibility & contrast

On white

10.62
#5B247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5B247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B247A
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B247A#FFFFFF#000000##FFFFFF
##5B247A1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#183F78
Tritanopia (blue-blind)
#57364C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b247a;
/* rgb */ color: rgb(91, 36, 122);
/* oklch */ color: oklch(38.3% 0.143 310.7);
Tailwind
colors: {
  custom: {
    50: '#8d63a1',
    500: '#5b247a',
    950: '#000000',
  },
}
SCSS
$custom: #5b247a;
$custom-light: #8d63a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b247a",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 278.372,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38342,
    "c": 0.14332,
    "h": 310.7
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#5B247A
secondary
#70AC4D
accent
#DE4A7F
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5B247A

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

Preview Lab → · Contrast checker → · Palette generator →

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