#5B2CA3#5B2CA3

#5B2CA3 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.179 H 295.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5B2CA3
RGBrgb(91, 44, 163)
HSLhsl(264, 57%, 41%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(44.2%, 73%, 0%, 36.1%)
CIE-LABlab(31.04, 46.83, -56.30)
CIE-LCHlch(31.04, 73.23, 309.76°)
OKLaboklab(42.64% 0.0781 -0.1611)
OKLCHoklch(42.64% 0.179 295.9)
XYZxyz(11.8242, 6.6696, 35.3076)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CA3 #74A32C
analogous
#2C39A3 #5B2CA3 #962CA3
triadic
#5B2CA3 #A35B2C #2CA35B
tetradic
#5B2CA3 #A32C39 #74A32C #2CA396
square
#5B2CA3 #A32C39 #74A32C #2CA396
split-complementary
#5B2CA3 #A3962C #39A32C
monochromatic
#251243 #401F73 #5B2CA3 #7741CC #9A71D9

Accessibility & contrast

On white

9.00
#5B2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2CA3
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CA3#FFFFFF#000000##FFFFFF
##5B2CA31.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0047A1
Tritanopia (blue-blind)
#484A65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ca3;
/* rgb */ color: rgb(91, 44, 163);
/* oklch */ color: oklch(42.6% 0.179 295.9);
Tailwind
colors: {
  custom: {
    50: '#9069bf',
    500: '#5b2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ca3;
$custom-light: #9069bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ca3",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 263.697,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42641,
    "c": 0.17906,
    "h": 295.9
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#5B2CA3
secondary
#9EC06B
accent
#E147A4
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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