#5D30B9#5D30B9

#5D30B9 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.200 H 291.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5D30B9
RGBrgb(93, 48, 185)
HSLhsl(260, 59%, 46%)
HSVhsv(260, 74%, 73%)
CMYKcmyk(49.7%, 74.1%, 0%, 27.5%)
CIE-LABlab(33.86, 51.16, -64.82)
CIE-LCHlch(33.86, 82.58, 308.28°)
OKLaboklab(45.27% 0.0725 -0.1861)
OKLCHoklch(45.27% 0.2 291.3)
XYZxyz(14.3256, 7.9433, 46.6679)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30B9 #8CB930
analogous
#3047B9 #5D30B9 #A130B9
triadic
#5D30B9 #B95D30 #30B95D
tetradic
#5D30B9 #B93047 #8CB930 #30B9A1
square
#5D30B9 #B93047 #8CB930 #30B9A1
split-complementary
#5D30B9 #B9A130 #47B930
monochromatic
#2C1758 #452388 #5D30B9 #7D54D3 #A284DF

Accessibility & contrast

On white

8.11
#5D30B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5D30B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30B9
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30B9#FFFFFF#000000##FFFFFF
##5D30B91.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#004DB6
Tritanopia (blue-blind)
#3E5572
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d30b9;
/* rgb */ color: rgb(93, 48, 185);
/* oklch */ color: oklch(45.3% 0.200 291.3);
Tailwind
colors: {
  custom: {
    50: '#946dcf',
    500: '#5d30b9',
    950: '#000000',
  },
}
SCSS
$custom: #5d30b9;
$custom-light: #946dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30b9",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 185
  },
  "hsl": {
    "h": 259.708,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.19969,
    "h": 291.3
  },
  "luminance": 0.07944
}

Semantic roles & 50–950 ramp

primary
#5D30B9
secondary
#AFC97C
accent
#E246AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D30B9

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

Preview Lab → · Contrast checker → · Palette generator →

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