#5B2BA3#5B2BA3

#5B2BA3 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.180 H 296.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B2BA3
RGBrgb(91, 43, 163)
HSLhsl(264, 58%, 40%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(44.2%, 73.6%, 0%, 36.1%)
CIE-LABlab(30.87, 47.32, -56.58)
CIE-LCHlch(30.87, 73.76, 309.91°)
OKLaboklab(42.52% 0.0791 -0.1619)
OKLCHoklch(42.52% 0.18 296)
XYZxyz(11.7874, 6.5960, 35.2953)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BA3 #73A32B
analogous
#2B37A3 #5B2BA3 #972BA3
triadic
#5B2BA3 #A35B2B #2BA35B
tetradic
#5B2BA3 #A32B37 #73A32B #2BA397
square
#5B2BA3 #A32B37 #73A32B #2BA397
split-complementary
#5B2BA3 #A3972B #37A32B
monochromatic
#251142 #401E73 #5B2BA3 #773FCC #9A6FD9

Accessibility & contrast

On white

9.05
#5B2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BA3
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BA3#FFFFFF#000000##FFFFFF
##5B2BA31.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#484A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ba3;
/* rgb */ color: rgb(91, 43, 163);
/* oklch */ color: oklch(42.5% 0.180 296.0);
Tailwind
colors: {
  custom: {
    50: '#9069bf',
    500: '#5b2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ba3;
$custom-light: #9069bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ba3",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 264,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42518,
    "c": 0.18022,
    "h": 296
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#5B2BA3
secondary
#9EC06A
accent
#E146A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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