#5B2498#5B2498

#5B2498 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.176 H 300.1°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5B2498
RGBrgb(91, 36, 152)
HSLhsl(268, 62%, 37%)
HSVhsv(268, 76%, 60%)
CMYKcmyk(40.1%, 76.3%, 0%, 40.4%)
CIE-LABlab(28.78, 47.74, -53.30)
CIE-LCHlch(28.78, 71.55, 311.85°)
OKLaboklab(40.76% 0.0882 -0.1522)
OKLCHoklch(40.76% 0.176 300.1)
XYZxyz(10.6113, 5.7528, 30.2510)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2498 #619824
analogous
#242798 #5B2498 #952498
triadic
#5B2498 #985B24 #24985B
tetradic
#5B2498 #982427 #619824 #249895
square
#5B2498 #982427 #619824 #249895
split-complementary
#5B2498 #989524 #279824
monochromatic
#200D35 #3D1867 #5B2498 #7930C9 #985ED9

Accessibility & contrast

On white

9.76
#5B2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2498
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2498#FFFFFF#000000##FFFFFF
##5B24981.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#4D425C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2498;
/* rgb */ color: rgb(91, 36, 152);
/* oklch */ color: oklch(40.8% 0.176 300.1);
Tailwind
colors: {
  custom: {
    50: '#8f65b7',
    500: '#5b2498',
    950: '#000000',
  },
}
SCSS
$custom: #5b2498;
$custom-light: #8f65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2498",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 268.448,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40755,
    "c": 0.17594,
    "h": 300.1
  },
  "luminance": 0.05753
}

Semantic roles & 50–950 ramp

primary
#5B2498
secondary
#8EBE5A
accent
#E54398
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2498

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

Preview Lab → · Contrast checker → · Palette generator →

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