#5B30BA#5B30BA

#5B30BA is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.201 H 290.2°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5B30BA
RGBrgb(91, 48, 186)
HSLhsl(259, 59%, 46%)
HSVhsv(259, 74%, 73%)
CMYKcmyk(51.1%, 74.2%, 0%, 27.1%)
CIE-LABlab(33.74, 51.12, -65.63)
CIE-LCHlch(33.74, 83.19, 307.92°)
OKLaboklab(45.16% 0.0693 -0.1885)
OKLCHoklch(45.16% 0.201 290.2)
XYZxyz(14.2317, 7.8826, 47.2165)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30BA #8FBA30
analogous
#304ABA #5B30BA #A030BA
triadic
#5B30BA #BA5B30 #30BA5B
tetradic
#5B30BA #BA304A #8FBA30 #30BAA0
square
#5B30BA #BA304A #8FBA30 #30BAA0
split-complementary
#5B30BA #BAA030 #4ABA30
monochromatic
#2B1759 #432389 #5B30BA #7C54D3 #A185DF

Accessibility & contrast

On white

8.15
#5B30BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5B30BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30BA
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30BA#FFFFFF#000000##FFFFFF
##5B30BA1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#395573
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b30ba;
/* rgb */ color: rgb(91, 48, 186);
/* oklch */ color: oklch(45.2% 0.201 290.2);
Tailwind
colors: {
  custom: {
    50: '#936dd0',
    500: '#5b30ba',
    950: '#000000',
  },
}
SCSS
$custom: #5b30ba;
$custom-light: #936dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30ba",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 258.696,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4516,
    "c": 0.20084,
    "h": 290.2
  },
  "luminance": 0.07883
}

Semantic roles & 50–950 ramp

primary
#5B30BA
secondary
#B1C97D
accent
#E246B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B30BA

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

Preview Lab → · Contrast checker → · Palette generator →

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