#5D30B5#5D30B5

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

Color values

HEX#5D30B5
RGBrgb(93, 48, 181)
HSLhsl(260, 58%, 45%)
HSVhsv(260, 73%, 71%)
CMYKcmyk(48.6%, 73.5%, 0%, 29%)
CIE-LABlab(33.51, 50.07, -63.03)
CIE-LCHlch(33.51, 80.49, 308.46°)
OKLaboklab(44.92% 0.0734 -0.1808)
OKLCHoklch(44.92% 0.195 292.1)
XYZxyz(13.9093, 7.7768, 44.4753)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30B5 #88B530
analogous
#3045B5 #5D30B5 #A030B5
triadic
#5D30B5 #B55D30 #30B55D
tetradic
#5D30B5 #B53045 #88B530 #30B5A0
square
#5D30B5 #B53045 #88B530 #30B5A0
split-complementary
#5D30B5 #B5A030 #45B530
monochromatic
#2B1654 #442385 #5D30B5 #7C51D1 #A182DE

Accessibility & contrast

On white

8.22
#5D30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5D30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30B5
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30B5#FFFFFF#000000##FFFFFF
##5D30B51.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#415370
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5d30b5;
/* rgb */ color: rgb(93, 48, 181);
/* oklch */ color: oklch(44.9% 0.195 292.1);
Tailwind
colors: {
  custom: {
    50: '#936dcc',
    500: '#5d30b5',
    950: '#000000',
  },
}
SCSS
$custom: #5d30b5;
$custom-light: #936dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30b5",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 260.301,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44917,
    "c": 0.19515,
    "h": 292.1
  },
  "luminance": 0.07777
}

Semantic roles & 50–950 ramp

primary
#5D30B5
secondary
#ADC77A
accent
#E146AD
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5D30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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