#5B30B6#5B30B6

#5B30B6 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.8% C 0.196 H 291.0°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5B30B6
RGBrgb(91, 48, 182)
HSLhsl(259, 58%, 45%)
HSVhsv(259, 74%, 71%)
CMYKcmyk(50%, 73.6%, 0%, 28.6%)
CIE-LABlab(33.38, 50.02, -63.84)
CIE-LCHlch(33.38, 81.10, 308.08°)
OKLaboklab(44.8% 0.0702 -0.1833)
OKLCHoklch(44.8% 0.196 291)
XYZxyz(13.8124, 7.7149, 45.0082)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30B6 #8BB630
analogous
#3048B6 #5B30B6 #9E30B6
triadic
#5B30B6 #B65B30 #30B65B
tetradic
#5B30B6 #B63048 #8BB630 #30B69E
square
#5B30B6 #B63048 #8BB630 #30B69E
split-complementary
#5B30B6 #B69E30 #48B630
monochromatic
#2B1655 #432386 #5B30B6 #7B52D1 #A082DE

Accessibility & contrast

On white

8.26
#5B30B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5B30B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30B6
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30B6#FFFFFF#000000##FFFFFF
##5B30B61.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#3C5470
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b30b6;
/* rgb */ color: rgb(91, 48, 182);
/* oklch */ color: oklch(44.8% 0.196 291.0);
Tailwind
colors: {
  custom: {
    50: '#926dcd',
    500: '#5b30b6',
    950: '#000000',
  },
}
SCSS
$custom: #5b30b6;
$custom-light: #926dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30b6",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 259.254,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.448,
    "c": 0.19627,
    "h": 291
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

primary
#5B30B6
secondary
#AFC77B
accent
#E146B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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