#5B249B#5B249B

#5B249B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.179 H 299.2°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5B249B
RGBrgb(91, 36, 155)
HSLhsl(268, 62%, 37%)
HSVhsv(268, 77%, 61%)
CMYKcmyk(41.3%, 76.8%, 0%, 39.2%)
CIE-LABlab(29.04, 48.50, -54.71)
CIE-LCHlch(29.04, 73.12, 311.56°)
OKLaboklab(41.02% 0.0874 -0.1564)
OKLCHoklch(41.02% 0.179 299.2)
XYZxyz(10.8602, 5.8523, 31.5614)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B249B #649B24
analogous
#24289B #5B249B #97249B
triadic
#5B249B #9B5B24 #249B5B
tetradic
#5B249B #9B2428 #649B24 #249B97
square
#5B249B #9B2428 #649B24 #249B97
split-complementary
#5B249B #9B9724 #289B24
monochromatic
#210D38 #3E1869 #5B249B #7830CD #985FDA

Accessibility & contrast

On white

9.68
#5B249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5B249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B249B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B249B#FFFFFF#000000##FFFFFF
##5B249B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4C435E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b249b;
/* rgb */ color: rgb(91, 36, 155);
/* oklch */ color: oklch(41.0% 0.179 299.2);
Tailwind
colors: {
  custom: {
    50: '#9065b9',
    500: '#5b249b',
    950: '#000000',
  },
}
SCSS
$custom: #5b249b;
$custom-light: #9065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b249b",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 267.731,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41015,
    "c": 0.17918,
    "h": 299.2
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#5B249B
secondary
#91BF5C
accent
#E5429A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B249B

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

Preview Lab → · Contrast checker → · Palette generator →

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