#5B30AC#5B30AC

#5B30AC is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.185 H 293.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5B30AC
RGBrgb(91, 48, 172)
HSLhsl(261, 56%, 43%)
HSVhsv(261, 72%, 67%)
CMYKcmyk(47.1%, 72.1%, 0%, 32.5%)
CIE-LABlab(32.52, 47.27, -59.30)
CIE-LCHlch(32.52, 75.84, 308.56°)
OKLaboklab(43.92% 0.0725 -0.17)
OKLCHoklch(43.92% 0.185 293.1)
XYZxyz(12.8157, 7.3162, 39.7587)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30AC #81AC30
analogous
#3043AC #5B30AC #9930AC
triadic
#5B30AC #AC5B30 #30AC5B
tetradic
#5B30AC #AC3043 #81AC30 #30AC99
square
#5B30AC #AC3043 #81AC30 #30AC99
split-complementary
#5B30AC #AC9930 #43AC30
monochromatic
#28154C #42237C #5B30AC #794CCD #9D7CDA

Accessibility & contrast

On white

8.52
#5B30AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B30AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30AC
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30AC#FFFFFF#000000##FFFFFF
##5B30AC1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#43506B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b30ac;
/* rgb */ color: rgb(91, 48, 172);
/* oklch */ color: oklch(43.9% 0.185 293.1);
Tailwind
colors: {
  custom: {
    50: '#916cc6',
    500: '#5b30ac',
    950: '#000000',
  },
}
SCSS
$custom: #5b30ac;
$custom-light: #916cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30ac",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 260.806,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43921,
    "c": 0.18476,
    "h": 293.1
  },
  "luminance": 0.07317
}

Semantic roles & 50–950 ramp

primary
#5B30AC
secondary
#A8C375
accent
#E048AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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