#5B30BB#5B30BB

#5B30BB is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.202 H 290.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5B30BB
RGBrgb(91, 48, 187)
HSLhsl(259, 59%, 46%)
HSVhsv(259, 74%, 73%)
CMYKcmyk(51.3%, 74.3%, 0%, 26.7%)
CIE-LABlab(33.83, 51.40, -66.07)
CIE-LCHlch(33.83, 83.71, 307.88°)
OKLaboklab(45.25% 0.069 -0.1898)
OKLCHoklch(45.25% 0.202 290)
XYZxyz(14.3384, 7.9253, 47.7783)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30BB #90BB30
analogous
#304ABB #5B30BB #A030BB
triadic
#5B30BB #BB5B30 #30BB5B
tetradic
#5B30BB #BB304A #90BB30 #30BBA0
square
#5B30BB #BB304A #90BB30 #30BBA0
split-complementary
#5B30BB #BBA030 #4ABB30
monochromatic
#2C175A #43238A #5B30BB #7C55D3 #A186E0

Accessibility & contrast

On white

8.12
#5B30BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5B30BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30BB
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30BB#FFFFFF#000000##FFFFFF
##5B30BB1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#395673
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b30bb;
/* rgb */ color: rgb(91, 48, 187);
/* oklch */ color: oklch(45.3% 0.202 290.0);
Tailwind
colors: {
  custom: {
    50: '#936dd1',
    500: '#5b30bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b30bb;
$custom-light: #936dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30bb",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 258.561,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4525,
    "c": 0.20198,
    "h": 290
  },
  "luminance": 0.07926
}

Semantic roles & 50–950 ramp

primary
#5B30BB
secondary
#B2C97D
accent
#E245B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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