#5D30C2#5D30C2

#5D30C2 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.1% C 0.210 H 289.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5D30C2
RGBrgb(93, 48, 194)
HSLhsl(258, 60%, 47%)
HSVhsv(258, 75%, 76%)
CMYKcmyk(52.1%, 75.3%, 0%, 23.9%)
CIE-LABlab(34.67, 53.61, -68.80)
CIE-LCHlch(34.67, 87.22, 307.93°)
OKLaboklab(46.09% 0.0702 -0.1977)
OKLCHoklch(46.09% 0.21 289.5)
XYZxyz(15.3059, 8.3354, 51.8309)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D30C2 #95C230
analogous
#304CC2 #5D30C2 #A630C2
triadic
#5D30C2 #C25D30 #30C25D
tetradic
#5D30C2 #C2304C #95C230 #30C2A6
square
#5D30C2 #C2304C #95C230 #30C2A6
split-complementary
#5D30C2 #C2A630 #4CC230
monochromatic
#2E1860 #452491 #5D30C2 #8059D6 #A58AE2

Accessibility & contrast

On white

7.87
#5D30C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5D30C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D30C2
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D30C2#FFFFFF#000000##FFFFFF
##5D30C21.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#375877
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5d30c2;
/* rgb */ color: rgb(93, 48, 194);
/* oklch */ color: oklch(46.1% 0.210 289.5);
Tailwind
colors: {
  custom: {
    50: '#956dd6',
    500: '#5d30c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d30c2;
$custom-light: #956dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d30c2",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 194
  },
  "hsl": {
    "h": 258.493,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46087,
    "c": 0.20982,
    "h": 289.5
  },
  "luminance": 0.08336
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D30C2

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

Preview Lab → · Contrast checker → · Palette generator →

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