#5D30C1#5D30C1

#5D30C1 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.209 H 289.7°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5D30C1
RGBrgb(93, 48, 193)
HSLhsl(259, 60%, 47%)
HSVhsv(259, 75%, 76%)
CMYKcmyk(51.8%, 75.1%, 0%, 24.3%)
CIE-LABlab(34.58, 53.34, -68.36)
CIE-LCHlch(34.58, 86.71, 307.96°)
OKLaboklab(46% 0.0705 -0.1965)
OKLCHoklch(46% 0.209 289.7)
XYZxyz(15.1940, 8.2906, 51.2414)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30C1 #94C130
analogous
#304BC1 #5D30C1 #A630C1
triadic
#5D30C1 #C15D30 #30C15D
tetradic
#5D30C1 #C1304B #94C130 #30C1A6
square
#5D30C1 #C1304B #94C130 #30C1A6
split-complementary
#5D30C1 #C1A630 #4BC130
monochromatic
#2E185F #452490 #5D30C1 #7F59D6 #A58AE2

Accessibility & contrast

On white

7.90
#5D30C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5D30C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30C1
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30C1#FFFFFF#000000##FFFFFF
##5D30C11.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C5
Deuteranopia (green-blind)
#004EBE
Tritanopia (blue-blind)
#385877
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d30c1;
/* rgb */ color: rgb(93, 48, 193);
/* oklch */ color: oklch(46.0% 0.209 289.7);
Tailwind
colors: {
  custom: {
    50: '#956dd5',
    500: '#5d30c1',
    950: '#000000',
  },
}
SCSS
$custom: #5d30c1;
$custom-light: #956dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30c1",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 193
  },
  "hsl": {
    "h": 258.621,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.2087,
    "h": 289.7
  },
  "luminance": 0.08291
}

Semantic roles & 50–950 ramp

primary
#5D30C1
secondary
#B5CC81
accent
#E344B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5D30C1

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

Preview Lab → · Contrast checker → · Palette generator →

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