#5B249A#5B249A

#5B249A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.178 H 299.5°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5B249A
RGBrgb(91, 36, 154)
HSLhsl(268, 62%, 37%)
HSVhsv(268, 77%, 60%)
CMYKcmyk(40.9%, 76.6%, 0%, 39.6%)
CIE-LABlab(28.95, 48.25, -54.24)
CIE-LCHlch(28.95, 72.59, 311.65°)
OKLaboklab(40.93% 0.0877 -0.155)
OKLCHoklch(40.93% 0.178 299.5)
XYZxyz(10.7765, 5.8189, 31.1210)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B249A #639A24
analogous
#24289A #5B249A #96249A
triadic
#5B249A #9A5B24 #249A5B
tetradic
#5B249A #9A2428 #639A24 #249A96
square
#5B249A #9A2428 #639A24 #249A96
split-complementary
#5B249A #9A9624 #289A24
monochromatic
#200D37 #3E1868 #5B249A #7830CC #985FDA

Accessibility & contrast

On white

9.71
#5B249A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B249A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B249A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B249A#FFFFFF#000000##FFFFFF
##5B249A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b249a;
/* rgb */ color: rgb(91, 36, 154);
/* oklch */ color: oklch(40.9% 0.178 299.5);
Tailwind
colors: {
  custom: {
    50: '#9065b9',
    500: '#5b249a',
    950: '#000000',
  },
}
SCSS
$custom: #5b249a;
$custom-light: #9065b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b249a",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 154
  },
  "hsl": {
    "h": 267.966,
    "s": 62.105,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40928,
    "c": 0.1781,
    "h": 299.5
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#5B249A
secondary
#90BF5B
accent
#E54399
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B249A

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

Preview Lab → · Contrast checker → · Palette generator →

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