#5B2CB3#5B2CB3

#5B2CB3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.197 H 292.1°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5B2CB3
RGBrgb(91, 44, 179)
HSLhsl(261, 61%, 44%)
HSVhsv(261, 75%, 70%)
CMYKcmyk(49.2%, 75.4%, 0%, 29.8%)
CIE-LABlab(32.44, 51.13, -63.61)
CIE-LCHlch(32.44, 81.61, 308.79°)
OKLaboklab(44.05% 0.0743 -0.1826)
OKLCHoklch(44.05% 0.197 292.1)
XYZxyz(13.3495, 7.2797, 43.3408)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CB3 #84B32C
analogous
#2C40B3 #5B2CB3 #9E2CB3
triadic
#5B2CB3 #B35B2C #2CB35B
tetradic
#5B2CB3 #B32C40 #84B32C #2CB39E
square
#5B2CB3 #B32C40 #84B32C #2CB39E
split-complementary
#5B2CB3 #B39E2C #40B32C
monochromatic
#291451 #422082 #5B2CB3 #794AD2 #9E7BDF

Accessibility & contrast

On white

8.55
#5B2CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B2CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CB3
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CB3#FFFFFF#000000##FFFFFF
##5B2CB31.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#3E516E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2cb3;
/* rgb */ color: rgb(91, 44, 179);
/* oklch */ color: oklch(44.1% 0.197 292.1);
Tailwind
colors: {
  custom: {
    50: '#926acb',
    500: '#5b2cb3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cb3;
$custom-light: #926acb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cb3",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 260.889,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44052,
    "c": 0.19712,
    "h": 292.1
  },
  "luminance": 0.0728
}

Semantic roles & 50–950 ramp

primary
#5B2CB3
secondary
#AAC774
accent
#E444AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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