#5B2398#5B2398

#5B2398 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.177 H 300.2°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5B2398
RGBrgb(91, 35, 152)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 77%, 60%)
CMYKcmyk(40.1%, 77%, 0%, 40.4%)
CIE-LABlab(28.62, 48.18, -53.55)
CIE-LCHlch(28.62, 72.04, 311.98°)
OKLaboklab(40.65% 0.0891 -0.153)
OKLCHoklch(40.65% 0.177 300.2)
XYZxyz(10.5815, 5.6931, 30.2411)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2398 #609823
analogous
#232698 #5B2398 #962398
triadic
#5B2398 #985B23 #23985B
tetradic
#5B2398 #982326 #609823 #239896
square
#5B2398 #982326 #609823 #239896
split-complementary
#5B2398 #989623 #269823
monochromatic
#1F0C35 #3D1866 #5B2398 #792ECA #985CD9

Accessibility & contrast

On white

9.82
#5B2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2398
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2398#FFFFFF#000000##FFFFFF
##5B23981.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2398;
/* rgb */ color: rgb(91, 35, 152);
/* oklch */ color: oklch(40.6% 0.177 300.2);
Tailwind
colors: {
  custom: {
    50: '#8f64b7',
    500: '#5b2398',
    950: '#000000',
  },
}
SCSS
$custom: #5b2398;
$custom-light: #8f64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2398",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 268.718,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40646,
    "c": 0.17704,
    "h": 300.2
  },
  "luminance": 0.05693
}

Semantic roles & 50–950 ramp

primary
#5B2398
secondary
#8EBE59
accent
#E64297
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2398

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

Preview Lab → · Contrast checker → · Palette generator →

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