#5B2B94#5B2B94

#5B2B94 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.163 H 300.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5B2B94
RGBrgb(91, 43, 148)
HSLhsl(267, 55%, 37%)
HSVhsv(267, 71%, 58%)
CMYKcmyk(38.5%, 70.9%, 0%, 42%)
CIE-LABlab(29.64, 43.37, -49.45)
CIE-LCHlch(29.64, 65.77, 311.25°)
OKLaboklab(41.26% 0.082 -0.141)
OKLCHoklch(41.26% 0.163 300.2)
XYZxyz(10.5222, 6.0899, 28.6323)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B94 #64942B
analogous
#2B2F94 #5B2B94 #902B94
triadic
#5B2B94 #945B2B #2B945B
tetradic
#5B2B94 #942B2F #64942B #2B9490
square
#5B2B94 #942B2F #64942B #2B9490
split-complementary
#5B2B94 #94902B #2F942B
monochromatic
#210F35 #3E1D65 #5B2B94 #7839C3 #9867D3

Accessibility & contrast

On white

9.47
#5B2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B2B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2B94
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B94#FFFFFF#000000##FFFFFF
##5B2B941.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#4E445C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b2b94;
/* rgb */ color: rgb(91, 43, 148);
/* oklch */ color: oklch(41.3% 0.163 300.2);
Tailwind
colors: {
  custom: {
    50: '#8e68b4',
    500: '#5b2b94',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b94;
$custom-light: #8e68b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b94",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 267.429,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4126,
    "c": 0.16311,
    "h": 300.2
  },
  "luminance": 0.0609
}

Semantic roles & 50–950 ramp

primary
#5B2B94
secondary
#91B962
accent
#DE499A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2B94

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

Preview Lab → · Contrast checker → · Palette generator →

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