#5B2492#5B2492

#5B2492 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.169 H 301.9°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5B2492
RGBrgb(91, 36, 146)
HSLhsl(270, 60%, 36%)
HSVhsv(270, 75%, 57%)
CMYKcmyk(37.7%, 75.3%, 0%, 42.7%)
CIE-LABlab(28.28, 46.23, -50.43)
CIE-LCHlch(28.28, 68.41, 312.51°)
OKLaboklab(40.24% 0.0896 -0.1438)
OKLCHoklch(40.24% 0.169 301.9)
XYZxyz(10.1323, 5.5612, 27.7282)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2492 #5B9224
analogous
#242492 #5B2492 #922492
triadic
#5B2492 #925B24 #24925B
tetradic
#5B2492 #922424 #5B9224 #249292
square
#5B2492 #922424 #5B9224 #249292
split-complementary
#5B2492 #929224 #249224
monochromatic
#1E0C30 #3C1861 #5B2492 #7A30C3 #985AD6

Accessibility & contrast

On white

9.94
#5B2492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B2492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2492
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2492#FFFFFF#000000##FFFFFF
##5B24921.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#4F4059
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2492;
/* rgb */ color: rgb(91, 36, 146);
/* oklch */ color: oklch(40.2% 0.169 301.9);
Tailwind
colors: {
  custom: {
    50: '#8f64b3',
    500: '#5b2492',
    950: '#000000',
  },
}
SCSS
$custom: #5b2492;
$custom-light: #8f64b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2492",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 270,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40244,
    "c": 0.16945,
    "h": 301.9
  },
  "luminance": 0.05561
}

Semantic roles & 50–950 ramp

primary
#5B2492
secondary
#89BB57
accent
#E44494
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2492

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

Preview Lab → · Contrast checker → · Palette generator →

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