#5B30C3#5B30C3

#5B30C3 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.211 H 288.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5B30C3
RGBrgb(91, 48, 195)
HSLhsl(258, 60%, 48%)
HSVhsv(258, 75%, 76%)
CMYKcmyk(53.3%, 75.4%, 0%, 23.5%)
CIE-LABlab(34.55, 53.60, -69.58)
CIE-LCHlch(34.55, 87.84, 307.61°)
OKLaboklab(45.98% 0.067 -0.2001)
OKLCHoklch(45.98% 0.211 288.5)
XYZxyz(15.2188, 8.2774, 52.4150)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30C3 #98C330
analogous
#304EC3 #5B30C3 #A430C3
triadic
#5B30C3 #C35B30 #30C35B
tetradic
#5B30C3 #C3304E #98C330 #30C3A4
square
#5B30C3 #C3304E #98C330 #30C3A4
split-complementary
#5B30C3 #C3A430 #4EC330
monochromatic
#2D1861 #442492 #5B30C3 #7E5AD6 #A58BE2

Accessibility & contrast

On white

7.91
#5B30C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B30C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30C3
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30C3#FFFFFF#000000##FFFFFF
##5B30C31.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C7
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#325978
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b30c3;
/* rgb */ color: rgb(91, 48, 195);
/* oklch */ color: oklch(46.0% 0.211 288.5);
Tailwind
colors: {
  custom: {
    50: '#946dd6',
    500: '#5b30c3',
    950: '#000000',
  },
}
SCSS
$custom: #5b30c3;
$custom-light: #946dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30c3",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 195
  },
  "hsl": {
    "h": 257.551,
    "s": 60.494,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45983,
    "c": 0.21101,
    "h": 288.5
  },
  "luminance": 0.08278
}

Semantic roles & 50–950 ramp

primary
#5B30C3
secondary
#B7CC82
accent
#E444B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5B30C3

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

Preview Lab → · Contrast checker → · Palette generator →

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