#5B30BF#5B30BF

#5B30BF is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.207 H 289.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5B30BF
RGBrgb(91, 48, 191)
HSLhsl(258, 60%, 47%)
HSVhsv(258, 75%, 75%)
CMYKcmyk(52.4%, 74.9%, 0%, 25.1%)
CIE-LABlab(34.19, 52.50, -67.84)
CIE-LCHlch(34.19, 85.78, 307.74°)
OKLaboklab(45.62% 0.068 -0.195)
OKLCHoklch(45.62% 0.207 289.2)
XYZxyz(14.7726, 8.0990, 50.0650)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30BF #94BF30
analogous
#304DBF #5B30BF #A330BF
triadic
#5B30BF #BF5B30 #30BF5B
tetradic
#5B30BF #BF304D #94BF30 #30BFA3
square
#5B30BF #BF304D #94BF30 #30BFA3
split-complementary
#5B30BF #BFA330 #4DBF30
monochromatic
#2C175D #44248E #5B30BF #7D57D5 #A388E1

Accessibility & contrast

On white

8.02
#5B30BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5B30BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30BF
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30BF#FFFFFF#000000##FFFFFF
##5B30BF1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#355775
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b30bf;
/* rgb */ color: rgb(91, 48, 191);
/* oklch */ color: oklch(45.6% 0.207 289.2);
Tailwind
colors: {
  custom: {
    50: '#946dd3',
    500: '#5b30bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b30bf;
$custom-light: #946dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30bf",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 191
  },
  "hsl": {
    "h": 258.042,
    "s": 59.833,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45615,
    "c": 0.20651,
    "h": 289.2
  },
  "luminance": 0.081
}

Semantic roles & 50–950 ramp

primary
#5B30BF
secondary
#B4CB80
accent
#E345B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B30BF

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

Preview Lab → · Contrast checker → · Palette generator →

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