#5B30DB#5B30DB

#5B30DB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.238 H 284.7°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5B30DB
RGBrgb(91, 48, 219)
HSLhsl(255, 70%, 52%)
HSVhsv(255, 78%, 86%)
CMYKcmyk(58.4%, 78.1%, 0%, 14.1%)
CIE-LABlab(36.84, 60.19, -79.74)
CIE-LCHlch(36.84, 99.91, 307.05°)
OKLaboklab(48.27% 0.0603 -0.2298)
OKLCHoklch(48.27% 0.238 284.7)
XYZxyz(18.1536, 9.4514, 67.8718)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30DB #B0DB30
analogous
#305ADB #5B30DB #B130DB
triadic
#5B30DB #DB5B30 #30DB5B
tetradic
#5B30DB #DB305A #B0DB30 #30DBB1
square
#5B30DB #DB305A #B0DB30 #30DBB1
split-complementary
#5B30DB #DBB130 #5ADB30
monochromatic
#2F157B #431EAF #5B30DB #8464E4 #AE98ED

Accessibility & contrast

On white

7.26
#5B30DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B30DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30DB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30DB#FFFFFF#000000##FFFFFF
##5B30DB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BE0
Deuteranopia (green-blind)
#0051D8
Tritanopia (blue-blind)
#086385
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b30db;
/* rgb */ color: rgb(91, 48, 219);
/* oklch */ color: oklch(48.3% 0.238 284.7);
Tailwind
colors: {
  custom: {
    50: '#986ee8',
    500: '#5b30db',
    950: '#000000',
  },
}
SCSS
$custom: #5b30db;
$custom-light: #986ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30db",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 219
  },
  "hsl": {
    "h": 255.088,
    "s": 70.37,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48268,
    "c": 0.23758,
    "h": 284.7
  },
  "luminance": 0.09453
}

Semantic roles & 50–950 ramp

primary
#5B30DB
secondary
#C6D98E
accent
#ED3BC0
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B30DB

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

Preview Lab → · Contrast checker → · Palette generator →

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