#5D30B8#5D30B8

#5D30B8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.199 H 291.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5D30B8
RGBrgb(93, 48, 184)
HSLhsl(260, 59%, 45%)
HSVhsv(260, 74%, 72%)
CMYKcmyk(49.5%, 73.9%, 0%, 27.8%)
CIE-LABlab(33.78, 50.88, -64.37)
CIE-LCHlch(33.78, 82.06, 308.32°)
OKLaboklab(45.18% 0.0727 -0.1848)
OKLCHoklch(45.18% 0.199 291.5)
XYZxyz(14.2204, 7.9012, 46.1139)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30B8 #8BB830
analogous
#3047B8 #5D30B8 #A130B8
triadic
#5D30B8 #B85D30 #30B85D
tetradic
#5D30B8 #B83047 #8BB830 #30B8A1
square
#5D30B8 #B83047 #8BB830 #30B8A1
split-complementary
#5D30B8 #B8A130 #47B830
monochromatic
#2C1757 #442387 #5D30B8 #7D53D2 #A284DF

Accessibility & contrast

On white

8.14
#5D30B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5D30B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30B8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30B8#FFFFFF#000000##FFFFFF
##5D30B81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#3F5471
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d30b8;
/* rgb */ color: rgb(93, 48, 184);
/* oklch */ color: oklch(45.2% 0.199 291.5);
Tailwind
colors: {
  custom: {
    50: '#946dce',
    500: '#5d30b8',
    950: '#000000',
  },
}
SCSS
$custom: #5d30b8;
$custom-light: #946dce;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30b8",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 184
  },
  "hsl": {
    "h": 259.853,
    "s": 58.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45183,
    "c": 0.19856,
    "h": 291.5
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#5D30B8
secondary
#AFC87C
accent
#E246AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5D30B8

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

Preview Lab → · Contrast checker → · Palette generator →

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