#5B248C#5B248C

#5B248C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.163 H 303.9°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5B248C
RGBrgb(91, 36, 140)
HSLhsl(272, 59%, 35%)
HSVhsv(272, 74%, 55%)
CMYKcmyk(35%, 74.3%, 0%, 45.1%)
CIE-LABlab(27.79, 44.73, -47.51)
CIE-LCHlch(27.79, 65.26, 313.27°)
OKLaboklab(39.75% 0.0908 -0.1352)
OKLCHoklch(39.75% 0.163 303.9)
XYZxyz(9.6778, 5.3794, 25.3343)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B248C #558C24
analogous
#27248C #5B248C #8C2489
triadic
#5B248C #8C5B24 #248C5B
tetradic
#5B248C #8C2724 #558C24 #24898C
square
#5B248C #8C2724 #558C24 #24898C
split-complementary
#5B248C #898C24 #248C27
monochromatic
#1C0B2B #3B175B #5B248C #7B31BD #9957D4

Accessibility & contrast

On white

10.12
#5B248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B248C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B248C#FFFFFF#000000##FFFFFF
##5B248C1.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#513D56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b248c;
/* rgb */ color: rgb(91, 36, 140);
/* oklch */ color: oklch(39.7% 0.163 303.9);
Tailwind
colors: {
  custom: {
    50: '#8e64ae',
    500: '#5b248c',
    950: '#000000',
  },
}
SCSS
$custom: #5b248c;
$custom-light: #8e64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b248c",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 271.731,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39747,
    "c": 0.16292,
    "h": 303.9
  },
  "luminance": 0.05379
}

Semantic roles & 50–950 ramp

primary
#5B248C
secondary
#83B854
accent
#E2468F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B248C

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

Preview Lab → · Contrast checker → · Palette generator →

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