#5B2CA1#5B2CA1

#5B2CA1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.177 H 296.4°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5B2CA1
RGBrgb(91, 44, 161)
HSLhsl(264, 57%, 40%)
HSVhsv(264, 73%, 63%)
CMYKcmyk(43.5%, 72.7%, 0%, 36.9%)
CIE-LABlab(30.87, 46.30, -55.36)
CIE-LCHlch(30.87, 72.17, 309.91°)
OKLaboklab(42.47% 0.0786 -0.1584)
OKLCHoklch(42.47% 0.177 296.4)
XYZxyz(11.6464, 6.5985, 34.3713)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CA1 #72A12C
analogous
#2C37A1 #5B2CA1 #962CA1
triadic
#5B2CA1 #A15B2C #2CA15B
tetradic
#5B2CA1 #A12C37 #72A12C #2CA196
square
#5B2CA1 #A12C37 #72A12C #2CA196
split-complementary
#5B2CA1 #A1962C #37A12C
monochromatic
#251241 #401F71 #5B2CA1 #7740CB #9970D8

Accessibility & contrast

On white

9.05
#5B2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5B2CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CA1
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CA1#FFFFFF#000000##FFFFFF
##5B2CA11.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#484A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ca1;
/* rgb */ color: rgb(91, 44, 161);
/* oklch */ color: oklch(42.5% 0.177 296.4);
Tailwind
colors: {
  custom: {
    50: '#9069be',
    500: '#5b2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ca1;
$custom-light: #9069be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ca1",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 264.103,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4247,
    "c": 0.17678,
    "h": 296.4
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#5B2CA1
secondary
#9DBF6A
accent
#E047A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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