#5D30AB#5D30AB

#5D30AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.184 H 294.3°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5D30AB
RGBrgb(93, 48, 171)
HSLhsl(262, 56%, 43%)
HSVhsv(262, 72%, 67%)
CMYKcmyk(45.6%, 71.9%, 0%, 32.9%)
CIE-LABlab(32.66, 47.35, -58.46)
CIE-LCHlch(32.66, 75.23, 309.00°)
OKLaboklab(44.05% 0.0756 -0.1674)
OKLCHoklch(44.05% 0.184 294.3)
XYZxyz(12.9198, 7.3810, 39.2641)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30AB #7EAB30
analogous
#3041AB #5D30AB #9A30AB
triadic
#5D30AB #AB5D30 #30AB5D
tetradic
#5D30AB #AB3041 #7EAB30 #30AB9A
square
#5D30AB #AB3041 #7EAB30 #30AB9A
split-complementary
#5D30AB #AB9A30 #41AB30
monochromatic
#29154B #43237B #5D30AB #7B4CCD #9E7BDA

Accessibility & contrast

On white

8.48
#5D30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5D30AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30AB
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30AB#FFFFFF#000000##FFFFFF
##5D30AB1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#474F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5d30ab;
/* rgb */ color: rgb(93, 48, 171);
/* oklch */ color: oklch(44.0% 0.184 294.3);
Tailwind
colors: {
  custom: {
    50: '#926cc5',
    500: '#5d30ab',
    950: '#000000',
  },
}
SCSS
$custom: #5d30ab;
$custom-light: #926cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30ab",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 261.951,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44048,
    "c": 0.1837,
    "h": 294.3
  },
  "luminance": 0.07381
}

Semantic roles & 50–950 ramp

primary
#5D30AB
secondary
#A6C374
accent
#DF48A8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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