#5B247C#5B247C

#5B247C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.145 H 309.9°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5B247C
RGBrgb(91, 36, 124)
HSLhsl(278, 55%, 31%)
HSVhsv(278, 71%, 49%)
CMYKcmyk(26.6%, 71%, 0%, 51.4%)
CIE-LABlab(26.57, 40.84, -39.47)
CIE-LCHlch(26.57, 56.80, 315.98°)
OKLaboklab(38.49% 0.0933 -0.1116)
OKLCHoklch(38.49% 0.146 309.9)
XYZxyz(8.5826, 4.9413, 19.5665)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B247C #457C24
analogous
#2F247C #5B247C #7C2471
triadic
#5B247C #7C5B24 #247C5B
tetradic
#5B247C #7C2F24 #457C24 #24717C
square
#5B247C #7C2F24 #457C24 #24717C
split-complementary
#5B247C #717C24 #247C2F
monochromatic
#15081D #38164D #5B247C #7E32AB #9D4FCC

Accessibility & contrast

On white

10.56
#5B247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B247C
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B247C#FFFFFF#000000##FFFFFF
##5B247C1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#15407A
Tritanopia (blue-blind)
#56374D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b247c;
/* rgb */ color: rgb(91, 36, 124);
/* oklch */ color: oklch(38.5% 0.145 309.9);
Tailwind
colors: {
  custom: {
    50: '#8d63a2',
    500: '#5b247c',
    950: '#000000',
  },
}
SCSS
$custom: #5b247c;
$custom-light: #8d63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b247c",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 277.5,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38491,
    "c": 0.1455,
    "h": 309.9
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#5B247C
secondary
#72AE4D
accent
#DE4981
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #5B247C

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

Preview Lab → · Contrast checker → · Palette generator →

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