#5B30BD#5B30BD

#5B30BD is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.204 H 289.6°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5B30BD
RGBrgb(91, 48, 189)
HSLhsl(258, 59%, 46%)
HSVhsv(258, 75%, 74%)
CMYKcmyk(51.9%, 74.6%, 0%, 25.9%)
CIE-LABlab(34.01, 51.95, -66.96)
CIE-LCHlch(34.01, 84.75, 307.81°)
OKLaboklab(45.43% 0.0685 -0.1924)
OKLCHoklch(45.43% 0.204 289.6)
XYZxyz(14.5540, 8.0115, 48.9138)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30BD #92BD30
analogous
#304CBD #5B30BD #A230BD
triadic
#5B30BD #BD5B30 #30BD5B
tetradic
#5B30BD #BD304C #92BD30 #30BDA2
square
#5B30BD #BD304C #92BD30 #30BDA2
split-complementary
#5B30BD #BDA230 #4CBD30
monochromatic
#2C175B #44248C #5B30BD #7D56D4 #A287E0

Accessibility & contrast

On white

8.07
#5B30BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B30BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30BD
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30BD#FFFFFF#000000##FFFFFF
##5B30BD1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#375774
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b30bd;
/* rgb */ color: rgb(91, 48, 189);
/* oklch */ color: oklch(45.4% 0.204 289.6);
Tailwind
colors: {
  custom: {
    50: '#936dd2',
    500: '#5b30bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b30bd;
$custom-light: #936dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30bd",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 189
  },
  "hsl": {
    "h": 258.298,
    "s": 59.494,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45432,
    "c": 0.20424,
    "h": 289.6
  },
  "luminance": 0.08012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B30BD

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

Preview Lab → · Contrast checker → · Palette generator →

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