#5B2CA5#5B2CA5

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

Color values

HEX#5B2CA5
RGBrgb(91, 44, 165)
HSLhsl(263, 58%, 41%)
HSVhsv(263, 73%, 65%)
CMYKcmyk(44.8%, 73.3%, 0%, 35.3%)
CIE-LABlab(31.21, 47.37, -57.23)
CIE-LCHlch(31.21, 74.29, 309.61°)
OKLaboklab(42.81% 0.0777 -0.1638)
OKLCHoklch(42.81% 0.181 295.4)
XYZxyz(12.0048, 6.7418, 36.2588)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CA5 #76A52C
analogous
#2C39A5 #5B2CA5 #972CA5
triadic
#5B2CA5 #A55B2C #2CA55B
tetradic
#5B2CA5 #A52C39 #76A52C #2CA597
square
#5B2CA5 #A52C39 #76A52C #2CA597
split-complementary
#5B2CA5 #A5972C #39A52C
monochromatic
#261244 #401F75 #5B2CA5 #7842CD #9A72D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B2CA5#FFFFFF#000000##FFFFFF
##5B2CA51.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)
#004AA9
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#474B66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ca5;
/* rgb */ color: rgb(91, 44, 165);
/* oklch */ color: oklch(42.8% 0.181 295.4);
Tailwind
colors: {
  custom: {
    50: '#906ac1',
    500: '#5b2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ca5;
$custom-light: #906ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ca5",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 263.306,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42813,
    "c": 0.18134,
    "h": 295.4
  },
  "luminance": 0.06742
}

Semantic roles & 50–950 ramp

primary
#5B2CA5
secondary
#A0C16C
accent
#E147A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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