#5B2394#5B2394

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

Color values

HEX#5B2394
RGBrgb(91, 35, 148)
HSLhsl(270, 62%, 36%)
HSVhsv(270, 76%, 58%)
CMYKcmyk(38.5%, 76.4%, 0%, 42%)
CIE-LABlab(28.29, 47.18, -51.65)
CIE-LCHlch(28.29, 69.95, 312.41°)
OKLaboklab(40.3% 0.0901 -0.1474)
OKLCHoklch(40.3% 0.173 301.4)
XYZxyz(10.2594, 5.5643, 28.5447)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2394 #5C9423
analogous
#232394 #5B2394 #932394
triadic
#5B2394 #945B23 #23945B
tetradic
#5B2394 #942323 #5C9423 #239493
square
#5B2394 #942323 #5C9423 #239493
split-complementary
#5B2394 #949323 #239423
monochromatic
#1E0C31 #3D1763 #5B2394 #792FC5 #985AD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B2394#FFFFFF#000000##FFFFFF
##5B23941.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)
#004297
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#4E405A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2394;
/* rgb */ color: rgb(91, 35, 148);
/* oklch */ color: oklch(40.3% 0.173 301.4);
Tailwind
colors: {
  custom: {
    50: '#8f64b4',
    500: '#5b2394',
    950: '#000000',
  },
}
SCSS
$custom: #5b2394;
$custom-light: #8f64b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2394",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 269.735,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40302,
    "c": 0.17274,
    "h": 301.4
  },
  "luminance": 0.05564
}

Semantic roles & 50–950 ramp

primary
#5B2394
secondary
#8ABC57
accent
#E54395
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2394

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

Preview Lab → · Contrast checker → · Palette generator →

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