#5B30AA#5B30AA

#5B30AA is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.182 H 293.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5B30AA
RGBrgb(91, 48, 170)
HSLhsl(261, 56%, 43%)
HSVhsv(261, 72%, 67%)
CMYKcmyk(46.5%, 71.8%, 0%, 33.3%)
CIE-LABlab(32.35, 46.72, -58.38)
CIE-LCHlch(32.35, 74.77, 308.67°)
OKLaboklab(43.75% 0.0729 -0.1672)
OKLCHoklch(43.75% 0.182 293.5)
XYZxyz(12.6250, 7.2399, 38.7547)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30AA #7FAA30
analogous
#3042AA #5B30AA #9830AA
triadic
#5B30AA #AA5B30 #30AA5B
tetradic
#5B30AA #AA3042 #7FAA30 #30AA98
square
#5B30AA #AA3042 #7FAA30 #30AA98
split-complementary
#5B30AA #AA9830 #42AA30
monochromatic
#28154B #41237A #5B30AA #794BCC #9C7BDA

Accessibility & contrast

On white

8.58
#5B30AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5B30AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30AA
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30AA#FFFFFF#000000##FFFFFF
##5B30AA1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#444F6A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b30aa;
/* rgb */ color: rgb(91, 48, 170);
/* oklch */ color: oklch(43.7% 0.182 293.5);
Tailwind
colors: {
  custom: {
    50: '#916cc4',
    500: '#5b30aa',
    950: '#000000',
  },
}
SCSS
$custom: #5b30aa;
$custom-light: #916cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30aa",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 261.148,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43749,
    "c": 0.18244,
    "h": 293.5
  },
  "luminance": 0.0724
}

Semantic roles & 50–950 ramp

primary
#5B30AA
secondary
#A6C274
accent
#DF49AA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5B30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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