#5B2CAC#5B2CAC

#5B2CAC is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.189 H 293.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5B2CAC
RGBrgb(91, 44, 172)
HSLhsl(262, 59%, 42%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(47.1%, 74.4%, 0%, 32.5%)
CIE-LABlab(31.82, 49.24, -60.45)
CIE-LCHlch(31.82, 77.97, 309.17°)
OKLaboklab(43.43% 0.0761 -0.1733)
OKLCHoklch(43.43% 0.189 293.7)
XYZxyz(12.6594, 7.0037, 39.7066)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CAC #7DAC2C
analogous
#2C3DAC #5B2CAC #9B2CAC
triadic
#5B2CAC #AC5B2C #2CAC5B
tetradic
#5B2CAC #AC2C3D #7DAC2C #2CAC9B
square
#5B2CAC #AC2C3D #7DAC2C #2CAC9B
split-complementary
#5B2CAC #AC9B2C #3DAC2C
monochromatic
#27134B #41207B #5B2CAC #7846D0 #9C76DC

Accessibility & contrast

On white

8.75
#5B2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5B2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CAC
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CAC#FFFFFF#000000##FFFFFF
##5B2CAC1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#434E6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2cac;
/* rgb */ color: rgb(91, 44, 172);
/* oklch */ color: oklch(43.4% 0.189 293.7);
Tailwind
colors: {
  custom: {
    50: '#916ac6',
    500: '#5b2cac',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cac;
$custom-light: #916ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cac",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 262.031,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43425,
    "c": 0.18926,
    "h": 293.7
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#5B2CAC
secondary
#A5C470
accent
#E245A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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