#5B248A#5B248A

#5B248A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.161 H 304.6°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5B248A
RGBrgb(91, 36, 138)
HSLhsl(272, 59%, 34%)
HSVhsv(272, 74%, 54%)
CMYKcmyk(34.1%, 73.9%, 0%, 45.9%)
CIE-LABlab(27.63, 44.24, -46.53)
CIE-LCHlch(27.63, 64.20, 313.55°)
OKLaboklab(39.58% 0.0912 -0.1324)
OKLCHoklch(39.58% 0.161 304.6)
XYZxyz(9.5317, 5.3209, 24.5647)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B248A #538A24
analogous
#28248A #5B248A #8A2486
triadic
#5B248A #8A5B24 #248A5B
tetradic
#5B248A #8A2824 #538A24 #24868A
square
#5B248A #8A2824 #538A24 #24868A
split-complementary
#5B248A #868A24 #248A28
monochromatic
#1B0B29 #3B1759 #5B248A #7B31BB #9956D3

Accessibility & contrast

On white

10.17
#5B248A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B248A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B248A
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B248A#FFFFFF#000000##FFFFFF
##5B248A1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#523C55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b248a;
/* rgb */ color: rgb(91, 36, 138);
/* oklch */ color: oklch(39.6% 0.161 304.6);
Tailwind
colors: {
  custom: {
    50: '#8e64ad',
    500: '#5b248a',
    950: '#000000',
  },
}
SCSS
$custom: #5b248a;
$custom-light: #8e64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b248a",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 138
  },
  "hsl": {
    "h": 272.353,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39584,
    "c": 0.16075,
    "h": 304.6
  },
  "luminance": 0.05321
}

Semantic roles & 50–950 ramp

primary
#5B248A
secondary
#81B753
accent
#E2468E
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B248A

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

Preview Lab → · Contrast checker → · Palette generator →

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