#5B2598#5B2598

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

Color values

HEX#5B2598
RGBrgb(91, 37, 152)
HSLhsl(268, 61%, 37%)
HSVhsv(268, 76%, 60%)
CMYKcmyk(40.1%, 75.7%, 0%, 40.4%)
CIE-LABlab(28.94, 47.29, -53.04)
CIE-LCHlch(28.94, 71.06, 311.72°)
OKLaboklab(40.87% 0.0872 -0.1515)
OKLCHoklch(40.87% 0.175 299.9)
XYZxyz(10.6420, 5.8142, 30.2612)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2598 #629825
analogous
#252898 #5B2598 #952598
triadic
#5B2598 #985B25 #25985B
tetradic
#5B2598 #982528 #629825 #259895
square
#5B2598 #982528 #629825 #259895
split-complementary
#5B2598 #989525 #289825
monochromatic
#200D36 #3E1967 #5B2598 #7831C9 #985FD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B2598#FFFFFF#000000##FFFFFF
##5B25981.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)
#00449B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#4D435D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2598;
/* rgb */ color: rgb(91, 37, 152);
/* oklch */ color: oklch(40.9% 0.175 299.9);
Tailwind
colors: {
  custom: {
    50: '#8f65b7',
    500: '#5b2598',
    950: '#000000',
  },
}
SCSS
$custom: #5b2598;
$custom-light: #8f65b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2598",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 268.174,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40867,
    "c": 0.17483,
    "h": 299.9
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#5B2598
secondary
#8FBD5C
accent
#E44499
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2598

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

Preview Lab → · Contrast checker → · Palette generator →

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