#5B2BA2#5B2BA2

#5B2BA2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.179 H 296.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5B2BA2
RGBrgb(91, 43, 162)
HSLhsl(264, 58%, 40%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(43.8%, 73.5%, 0%, 36.5%)
CIE-LABlab(30.78, 47.06, -56.11)
CIE-LCHlch(30.78, 73.23, 309.98°)
OKLaboklab(42.43% 0.0793 -0.1606)
OKLCHoklch(42.43% 0.179 296.3)
XYZxyz(11.6981, 6.5603, 34.8253)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2BA2 #72A22B
analogous
#2B36A2 #5B2BA2 #972BA2
triadic
#5B2BA2 #A25B2B #2BA25B
tetradic
#5B2BA2 #A22B36 #72A22B #2BA297
square
#5B2BA2 #A22B36 #72A22B #2BA297
split-complementary
#5B2BA2 #A2972B #36A22B
monochromatic
#251141 #401E72 #5B2BA2 #773ECC #996FD9

Accessibility & contrast

On white

9.08
#5B2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5B2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2BA2
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2BA2#FFFFFF#000000##FFFFFF
##5B2BA21.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#484A64
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5b2ba2;
/* rgb */ color: rgb(91, 43, 162);
/* oklch */ color: oklch(42.4% 0.179 296.3);
Tailwind
colors: {
  custom: {
    50: '#9069be',
    500: '#5b2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ba2;
$custom-light: #9069be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ba2",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 264.202,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42432,
    "c": 0.17908,
    "h": 296.3
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#5B2BA2
secondary
#9DC069
accent
#E147A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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