#5B2CAF#5B2CAF

#5B2CAF is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.193 H 293.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#5B2CAF
RGBrgb(91, 44, 175)
HSLhsl(262, 60%, 43%)
HSVhsv(262, 75%, 69%)
CMYKcmyk(48%, 74.9%, 0%, 31.4%)
CIE-LABlab(32.08, 50.05, -61.81)
CIE-LCHlch(32.08, 79.54, 309.00°)
OKLaboklab(43.69% 0.0753 -0.1773)
OKLCHoklch(43.69% 0.193 293)
XYZxyz(12.9508, 7.1202, 41.2411)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CAF #80AF2C
analogous
#2C3EAF #5B2CAF #9C2CAF
triadic
#5B2CAF #AF5B2C #2CAF5B
tetradic
#5B2CAF #AF2C3E #80AF2C #2CAF9C
square
#5B2CAF #AF2C3E #80AF2C #2CAF9C
split-complementary
#5B2CAF #AF9C2C #3EAF2C
monochromatic
#28134D #42207E #5B2CAF #7947D1 #9C78DD

Accessibility & contrast

On white

8.66
#5B2CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5B2CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CAF
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CAF#FFFFFF#000000##FFFFFF
##5B2CAF1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#414F6B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5b2caf;
/* rgb */ color: rgb(91, 44, 175);
/* oklch */ color: oklch(43.7% 0.193 293.0);
Tailwind
colors: {
  custom: {
    50: '#926ac8',
    500: '#5b2caf',
    950: '#000000',
  },
}
SCSS
$custom: #5b2caf;
$custom-light: #926ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2caf",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 261.527,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43692,
    "c": 0.19264,
    "h": 293
  },
  "luminance": 0.07121
}

Semantic roles & 50–950 ramp

primary
#5B2CAF
secondary
#A7C572
accent
#E345AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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