#5B30AB#5B30AB

#5B30AB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.184 H 293.3°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#5B30AB
RGBrgb(91, 48, 171)
HSLhsl(261, 56%, 43%)
HSVhsv(261, 72%, 67%)
CMYKcmyk(46.8%, 71.9%, 0%, 32.9%)
CIE-LABlab(32.43, 47.00, -58.84)
CIE-LCHlch(32.43, 75.31, 308.61°)
OKLaboklab(43.84% 0.0727 -0.1686)
OKLCHoklch(43.84% 0.184 293.3)
XYZxyz(12.7200, 7.2779, 39.2548)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30AB #80AB30
analogous
#3042AB #5B30AB #9830AB
triadic
#5B30AB #AB5B30 #30AB5B
tetradic
#5B30AB #AB3042 #80AB30 #30AB98
square
#5B30AB #AB3042 #80AB30 #30AB98
split-complementary
#5B30AB #AB9830 #42AB30
monochromatic
#28154B #42237B #5B30AB #794CCD #9C7BDA

Accessibility & contrast

On white

8.55
#5B30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B30AB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30AB#FFFFFF#000000##FFFFFF
##5B30AB1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#43506A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b30ab;
/* rgb */ color: rgb(91, 48, 171);
/* oklch */ color: oklch(43.8% 0.184 293.3);
Tailwind
colors: {
  custom: {
    50: '#916cc5',
    500: '#5b30ab',
    950: '#000000',
  },
}
SCSS
$custom: #5b30ab;
$custom-light: #916cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30ab",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 260.976,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43835,
    "c": 0.1836,
    "h": 293.3
  },
  "luminance": 0.07278
}

Semantic roles & 50–950 ramp

primary
#5B30AB
secondary
#A7C374
accent
#DF48AB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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