#5B30BC#5B30BC

#5B30BC is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.3% C 0.203 H 289.8°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5B30BC
RGBrgb(91, 48, 188)
HSLhsl(258, 59%, 46%)
HSVhsv(258, 74%, 74%)
CMYKcmyk(51.6%, 74.5%, 0%, 26.3%)
CIE-LABlab(33.92, 51.67, -66.51)
CIE-LCHlch(33.92, 84.23, 307.84°)
OKLaboklab(45.34% 0.0688 -0.1911)
OKLCHoklch(45.34% 0.203 289.8)
XYZxyz(14.4458, 7.9683, 48.3441)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30BC #91BC30
analogous
#304BBC #5B30BC #A130BC
triadic
#5B30BC #BC5B30 #30BC5B
tetradic
#5B30BC #BC304B #91BC30 #30BCA1
square
#5B30BC #BC304B #91BC30 #30BCA1
split-complementary
#5B30BC #BCA130 #4BBC30
monochromatic
#2C175A #43248B #5B30BC #7C55D4 #A286E0

Accessibility & contrast

On white

8.10
#5B30BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B30BC
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30BC#FFFFFF#000000##FFFFFF
##5B30BC1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#385674
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b30bc;
/* rgb */ color: rgb(91, 48, 188);
/* oklch */ color: oklch(45.3% 0.203 289.8);
Tailwind
colors: {
  custom: {
    50: '#936dd1',
    500: '#5b30bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b30bc;
$custom-light: #936dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30bc",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 188
  },
  "hsl": {
    "h": 258.429,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45341,
    "c": 0.20311,
    "h": 289.8
  },
  "luminance": 0.07969
}

Semantic roles & 50–950 ramp

primary
#5B30BC
secondary
#B2CA7E
accent
#E345B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B30BC

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

Preview Lab → · Contrast checker → · Palette generator →

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