#5B248D#5B248D

#5B248D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.164 H 303.5°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5B248D
RGBrgb(91, 36, 141)
HSLhsl(271, 59%, 35%)
HSVhsv(271, 74%, 55%)
CMYKcmyk(35.5%, 74.5%, 0%, 44.7%)
CIE-LABlab(27.87, 44.98, -48.00)
CIE-LCHlch(27.87, 65.78, 313.14°)
OKLaboklab(39.83% 0.0906 -0.1367)
OKLCHoklch(39.83% 0.164 303.5)
XYZxyz(9.7519, 5.4090, 25.7244)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B248D #568D24
analogous
#27248D #5B248D #8D248A
triadic
#5B248D #8D5B24 #248D5B
tetradic
#5B248D #8D2724 #568D24 #248A8D
square
#5B248D #8D2724 #568D24 #248A8D
split-complementary
#5B248D #8A8D24 #248D27
monochromatic
#1C0B2B #3C185C #5B248D #7A30BE #9957D4

Accessibility & contrast

On white

10.09
#5B248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B248D
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B248D#FFFFFF#000000##FFFFFF
##5B248D1.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#513E56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b248d;
/* rgb */ color: rgb(91, 36, 141);
/* oklch */ color: oklch(39.8% 0.164 303.5);
Tailwind
colors: {
  custom: {
    50: '#8e64af',
    500: '#5b248d',
    950: '#000000',
  },
}
SCSS
$custom: #5b248d;
$custom-light: #8e64af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b248d",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 271.429,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39829,
    "c": 0.16401,
    "h": 303.5
  },
  "luminance": 0.05409
}

Semantic roles & 50–950 ramp

primary
#5B248D
secondary
#84B854
accent
#E34590
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B248D

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

Preview Lab → · Contrast checker → · Palette generator →

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