#5B2CA4#5B2CA4

#5B2CA4 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.7% C 0.180 H 295.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5B2CA4
RGBrgb(91, 44, 164)
HSLhsl(264, 58%, 41%)
HSVhsv(264, 73%, 64%)
CMYKcmyk(44.5%, 73.2%, 0%, 35.7%)
CIE-LABlab(31.13, 47.10, -56.76)
CIE-LCHlch(31.13, 73.76, 309.68°)
OKLaboklab(42.73% 0.0779 -0.1625)
OKLCHoklch(42.73% 0.18 295.6)
XYZxyz(11.9141, 6.7056, 35.7813)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CA4 #75A42C
analogous
#2C39A4 #5B2CA4 #972CA4
triadic
#5B2CA4 #A45B2C #2CA45B
tetradic
#5B2CA4 #A42C39 #75A42C #2CA497
square
#5B2CA4 #A42C39 #75A42C #2CA497
split-complementary
#5B2CA4 #A4972C #39A42C
monochromatic
#251243 #401F74 #5B2CA4 #7841CC #9A71D9

Accessibility & contrast

On white

8.97
#5B2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CA4
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CA4#FFFFFF#000000##FFFFFF
##5B2CA41.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0047A2
Tritanopia (blue-blind)
#474B65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b2ca4;
/* rgb */ color: rgb(91, 44, 164);
/* oklch */ color: oklch(42.7% 0.180 295.6);
Tailwind
colors: {
  custom: {
    50: '#906ac0',
    500: '#5b2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #5b2ca4;
$custom-light: #906ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2ca4",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 263.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42727,
    "c": 0.1802,
    "h": 295.6
  },
  "luminance": 0.06706
}

Semantic roles & 50–950 ramp

primary
#5B2CA4
secondary
#9FC06B
accent
#E147A5
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5B2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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