#5B2497#5B2497

#5B2497 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.175 H 300.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5B2497
RGBrgb(91, 36, 151)
HSLhsl(269, 61%, 37%)
HSVhsv(269, 76%, 59%)
CMYKcmyk(39.7%, 76.2%, 0%, 40.8%)
CIE-LABlab(28.70, 47.49, -52.82)
CIE-LCHlch(28.70, 71.03, 311.96°)
OKLaboklab(40.67% 0.0884 -0.1509)
OKLCHoklch(40.67% 0.175 300.4)
XYZxyz(10.5298, 5.7202, 29.8215)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2497 #609724
analogous
#242697 #5B2497 #952497
triadic
#5B2497 #975B24 #24975B
tetradic
#5B2497 #972426 #609724 #249795
square
#5B2497 #972426 #609724 #249795
split-complementary
#5B2497 #979524 #269724
monochromatic
#1F0C34 #3D1866 #5B2497 #7930C8 #985DD8

Accessibility & contrast

On white

9.79
#5B2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5B2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2497
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2497#FFFFFF#000000##FFFFFF
##5B24971.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#4D425C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2497;
/* rgb */ color: rgb(91, 36, 151);
/* oklch */ color: oklch(40.7% 0.175 300.4);
Tailwind
colors: {
  custom: {
    50: '#8f65b6',
    500: '#5b2497',
    950: '#000000',
  },
}
SCSS
$custom: #5b2497;
$custom-light: #8f65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2497",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 268.696,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40669,
    "c": 0.17486,
    "h": 300.4
  },
  "luminance": 0.0572
}

Semantic roles & 50–950 ramp

primary
#5B2497
secondary
#8EBD5A
accent
#E54397
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2497

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

Preview Lab → · Contrast checker → · Palette generator →

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