#5B2BA7#5B2BA7

#5B2BA7 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.185 H 295.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5B2BA7
RGBrgb(91, 43, 167)
HSLhsl(263, 59%, 41%)
HSVhsv(263, 74%, 65%)
CMYKcmyk(45.5%, 74.3%, 0%, 34.5%)
CIE-LABlab(31.21, 48.39, -58.43)
CIE-LCHlch(31.21, 75.87, 309.63°)
OKLaboklab(42.86% 0.0782 -0.1674)
OKLCHoklch(42.86% 0.185 295)
XYZxyz(12.1514, 6.7416, 37.2128)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BA7 #77A72B
analogous
#2B39A7 #5B2BA7 #992BA7
triadic
#5B2BA7 #A75B2B #2BA75B
tetradic
#5B2BA7 #A72B39 #77A72B #2BA799
square
#5B2BA7 #A72B39 #77A72B #2BA799
split-complementary
#5B2BA7 #A7992B #39A72B
monochromatic
#261246 #401E76 #5B2BA7 #7841CE #9A72DB

Accessibility & contrast

On white

8.94
#5B2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5B2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BA7
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BA7#FFFFFF#000000##FFFFFF
##5B2BA71.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#464C67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ba7;
/* rgb */ color: rgb(91, 43, 167);
/* oklch */ color: oklch(42.9% 0.185 295.0);
Tailwind
colors: {
  custom: {
    50: '#9169c2',
    500: '#5b2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ba7;
$custom-light: #9169c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ba7",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 263.226,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42865,
    "c": 0.18473,
    "h": 295
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#5B2BA7
secondary
#A1C26C
accent
#E246A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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