#5B248B#5B248B

#5B248B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.162 H 304.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5B248B
RGBrgb(91, 36, 139)
HSLhsl(272, 59%, 34%)
HSVhsv(272, 74%, 55%)
CMYKcmyk(34.5%, 74.1%, 0%, 45.5%)
CIE-LABlab(27.71, 44.48, -47.02)
CIE-LCHlch(27.71, 64.73, 313.41°)
OKLaboklab(39.67% 0.091 -0.1338)
OKLCHoklch(39.67% 0.162 304.2)
XYZxyz(9.6044, 5.3500, 24.9478)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B248B #548B24
analogous
#28248B #5B248B #8B2488
triadic
#5B248B #8B5B24 #248B5B
tetradic
#5B248B #8B2824 #548B24 #24888B
square
#5B248B #8B2824 #548B24 #24888B
split-complementary
#5B248B #888B24 #248B28
monochromatic
#1B0B2A #3B175A #5B248B #7B31BC #9956D3

Accessibility & contrast

On white

10.14
#5B248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B248B
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B248B#FFFFFF#000000##FFFFFF
##5B248B1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#523D55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b248b;
/* rgb */ color: rgb(91, 36, 139);
/* oklch */ color: oklch(39.7% 0.162 304.2);
Tailwind
colors: {
  custom: {
    50: '#8e64ae',
    500: '#5b248b',
    950: '#000000',
  },
}
SCSS
$custom: #5b248b;
$custom-light: #8e64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b248b",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 272.039,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39665,
    "c": 0.16184,
    "h": 304.2
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#5B248B
secondary
#82B753
accent
#E2468F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B248B

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

Preview Lab → · Contrast checker → · Palette generator →

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