#5B247B#5B247B

#5B247B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.144 H 310.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#5B247B
RGBrgb(91, 36, 123)
HSLhsl(278, 55%, 31%)
HSVhsv(278, 71%, 48%)
CMYKcmyk(26%, 70.7%, 0%, 51.8%)
CIE-LABlab(26.49, 40.60, -38.96)
CIE-LCHlch(26.49, 56.27, 316.19°)
OKLaboklab(38.42% 0.0934 -0.1101)
OKLCHoklch(38.42% 0.144 310.3)
XYZxyz(8.5197, 4.9161, 19.2352)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B247B #447B24
analogous
#2F247B #5B247B #7B246F
triadic
#5B247B #7B5B24 #247B5B
tetradic
#5B247B #7B2F24 #447B24 #246F7B
square
#5B247B #7B2F24 #447B24 #246F7B
split-complementary
#5B247B #6F7B24 #247B2F
monochromatic
#15081C #38164C #5B247B #7E32AA #9D4ECB

Accessibility & contrast

On white

10.59
#5B247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B247B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B247B#FFFFFF#000000##FFFFFF
##5B247B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#174079
Tritanopia (blue-blind)
#57364C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b247b;
/* rgb */ color: rgb(91, 36, 123);
/* oklch */ color: oklch(38.4% 0.144 310.3);
Tailwind
colors: {
  custom: {
    50: '#8d63a2',
    500: '#5b247b',
    950: '#000000',
  },
}
SCSS
$custom: #5b247b;
$custom-light: #8d63a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b247b",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 277.931,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38416,
    "c": 0.14441,
    "h": 310.3
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#5B247B
secondary
#71AD4D
accent
#DE4A80
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #5B247B

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

Preview Lab → · Contrast checker → · Palette generator →

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