#5B30DC#5B30DC

#5B30DC is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.4% C 0.239 H 284.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5B30DC
RGBrgb(91, 48, 220)
HSLhsl(255, 71%, 53%)
HSVhsv(255, 78%, 86%)
CMYKcmyk(58.6%, 78.2%, 0%, 13.7%)
CIE-LABlab(36.94, 60.46, -80.16)
CIE-LCHlch(36.94, 100.40, 307.03°)
OKLaboklab(48.37% 0.06 -0.231)
OKLCHoklch(48.37% 0.239 284.5)
XYZxyz(18.2857, 9.5042, 68.5672)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30DC #B1DC30
analogous
#305BDC #5B30DC #B130DC
triadic
#5B30DC #DC5B30 #30DC5B
tetradic
#5B30DC #DC305B #B1DC30 #30DCB1
square
#5B30DC #DC305B #B1DC30 #30DCB1
split-complementary
#5B30DC #DCB130 #5BDC30
monochromatic
#2F157D #431EB1 #5B30DC #8464E5 #AE99EE

Accessibility & contrast

On white

7.24
#5B30DC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5B30DC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30DC
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30DC#FFFFFF#000000##FFFFFF
##5B30DC1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CE1
Deuteranopia (green-blind)
#0051D9
Tritanopia (blue-blind)
#046386
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b30dc;
/* rgb */ color: rgb(91, 48, 220);
/* oklch */ color: oklch(48.4% 0.239 284.5);
Tailwind
colors: {
  custom: {
    50: '#986ee8',
    500: '#5b30dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b30dc;
$custom-light: #986ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30dc",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 220
  },
  "hsl": {
    "h": 255,
    "s": 71.074,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48365,
    "c": 0.23866,
    "h": 284.5
  },
  "luminance": 0.09505
}

Semantic roles & 50–950 ramp

primary
#5B30DC
secondary
#C7D98F
accent
#EE3AC1
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B30DC

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

Preview Lab → · Contrast checker → · Palette generator →

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