#5B2CA2#5B2CA2

#5B2CA2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.178 H 296.1°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#5B2CA2
RGBrgb(91, 44, 162)
HSLhsl(264, 57%, 40%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(43.8%, 72.8%, 0%, 36.5%)
CIE-LABlab(30.96, 46.56, -55.83)
CIE-LCHlch(30.96, 72.70, 309.83°)
OKLaboklab(42.56% 0.0784 -0.1597)
OKLCHoklch(42.56% 0.178 296.1)
XYZxyz(11.7349, 6.6339, 34.8376)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CA2 #73A22C
analogous
#2C38A2 #5B2CA2 #962CA2
triadic
#5B2CA2 #A25B2C #2CA25B
tetradic
#5B2CA2 #A22C38 #73A22C #2CA296
square
#5B2CA2 #A22C38 #73A22C #2CA296
split-complementary
#5B2CA2 #A2962C #38A22C
monochromatic
#251242 #401F72 #5B2CA2 #7740CB #9A70D8

Accessibility & contrast

On white

9.03
#5B2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CA2
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CA2#FFFFFF#000000##FFFFFF
##5B2CA21.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#484A64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ca2;
/* rgb */ color: rgb(91, 44, 162);
/* oklch */ color: oklch(42.6% 0.178 296.1);
Tailwind
colors: {
  custom: {
    50: '#9069be',
    500: '#5b2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ca2;
$custom-light: #9069be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ca2",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 263.898,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42555,
    "c": 0.17792,
    "h": 296.1
  },
  "luminance": 0.06634
}

Semantic roles & 50–950 ramp

primary
#5B2CA2
secondary
#9EBF6A
accent
#E147A3
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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