#5B2BA4#5B2BA4

#5B2BA4 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.181 H 295.8°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5B2BA4
RGBrgb(91, 43, 164)
HSLhsl(264, 58%, 41%)
HSVhsv(264, 74%, 64%)
CMYKcmyk(44.5%, 73.8%, 0%, 35.7%)
CIE-LABlab(30.95, 47.59, -57.04)
CIE-LCHlch(30.95, 74.29, 309.83°)
OKLaboklab(42.6% 0.0789 -0.1633)
OKLCHoklch(42.6% 0.181 295.8)
XYZxyz(11.8773, 6.6320, 35.7691)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BA4 #74A42B
analogous
#2B37A4 #5B2BA4 #972BA4
triadic
#5B2BA4 #A45B2B #2BA45B
tetradic
#5B2BA4 #A42B37 #74A42B #2BA497
square
#5B2BA4 #A42B37 #74A42B #2BA497
split-complementary
#5B2BA4 #A4972B #37A42B
monochromatic
#251243 #401E74 #5B2BA4 #773FCD #9A70D9

Accessibility & contrast

On white

9.03
#5B2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BA4
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BA4#FFFFFF#000000##FFFFFF
##5B2BA41.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#474A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ba4;
/* rgb */ color: rgb(91, 43, 164);
/* oklch */ color: oklch(42.6% 0.181 295.8);
Tailwind
colors: {
  custom: {
    50: '#9069c0',
    500: '#5b2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ba4;
$custom-light: #9069c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ba4",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 263.802,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42604,
    "c": 0.18134,
    "h": 295.8
  },
  "luminance": 0.06632
}

Semantic roles & 50–950 ramp

primary
#5B2BA4
secondary
#9EC16A
accent
#E246A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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