#5B249C#5B249C

#5B249C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.180 H 298.9°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5B249C
RGBrgb(91, 36, 156)
HSLhsl(268, 63%, 38%)
HSVhsv(268, 77%, 61%)
CMYKcmyk(41.7%, 76.9%, 0%, 38.8%)
CIE-LABlab(29.12, 48.76, -55.18)
CIE-LCHlch(29.12, 73.63, 311.46°)
OKLaboklab(41.1% 0.0872 -0.1578)
OKLCHoklch(41.1% 0.18 298.9)
XYZxyz(10.9445, 5.8860, 32.0055)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B249C #659C24
analogous
#24299C #5B249C #97249C
triadic
#5B249C #9C5B24 #249C5B
tetradic
#5B249C #9C2429 #659C24 #249C97
square
#5B249C #9C2429 #659C24 #249C97
split-complementary
#5B249C #9C9724 #299C24
monochromatic
#210D39 #3E196A #5B249C #782FCE #9860DA

Accessibility & contrast

On white

9.65
#5B249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5B249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B249C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B249C#FFFFFF#000000##FFFFFF
##5B249C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4B445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b249c;
/* rgb */ color: rgb(91, 36, 156);
/* oklch */ color: oklch(41.1% 0.180 298.9);
Tailwind
colors: {
  custom: {
    50: '#9065ba',
    500: '#5b249c',
    950: '#000000',
  },
}
SCSS
$custom: #5b249c;
$custom-light: #9065ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5b249c",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 267.5,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41102,
    "c": 0.18026,
    "h": 298.9
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#5B249C
secondary
#92BF5C
accent
#E6429B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B249C

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

Preview Lab → · Contrast checker → · Palette generator →

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