#5B30B7#5B30B7

#5B30B7 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.9% C 0.197 H 290.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5B30B7
RGBrgb(91, 48, 183)
HSLhsl(259, 58%, 45%)
HSVhsv(259, 74%, 72%)
CMYKcmyk(50.3%, 73.8%, 0%, 28.2%)
CIE-LABlab(33.47, 50.30, -64.29)
CIE-LCHlch(33.47, 81.63, 308.04°)
OKLaboklab(44.89% 0.07 -0.1846)
OKLCHoklch(44.89% 0.197 290.8)
XYZxyz(13.9161, 7.7564, 45.5545)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B30B7 #8CB730
analogous
#3048B7 #5B30B7 #9E30B7
triadic
#5B30B7 #B75B30 #30B75B
tetradic
#5B30B7 #B73048 #8CB730 #30B79E
square
#5B30B7 #B73048 #8CB730 #30B79E
split-complementary
#5B30B7 #B79E30 #48B730
monochromatic
#2B1756 #432387 #5B30B7 #7B52D2 #A083DE

Accessibility & contrast

On white

8.23
#5B30B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5B30B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B30B7
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B30B7#FFFFFF#000000##FFFFFF
##5B30B71.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#004CB4
Tritanopia (blue-blind)
#3B5471
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b30b7;
/* rgb */ color: rgb(91, 48, 183);
/* oklch */ color: oklch(44.9% 0.197 290.8);
Tailwind
colors: {
  custom: {
    50: '#926dce',
    500: '#5b30b7',
    950: '#000000',
  },
}
SCSS
$custom: #5b30b7;
$custom-light: #926dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b30b7",
  "rgb": {
    "r": 91,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 259.111,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4489,
    "c": 0.19742,
    "h": 290.8
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

primary
#5B30B7
secondary
#AFC87B
accent
#E246B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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