#5C30C2#5C30C2

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

Color values

HEX#5C30C2
RGBrgb(92, 48, 194)
HSLhsl(258, 60%, 47%)
HSVhsv(258, 75%, 76%)
CMYKcmyk(52.6%, 75.3%, 0%, 23.9%)
CIE-LABlab(34.57, 53.47, -68.97)
CIE-LCHlch(34.57, 87.27, 307.78°)
OKLaboklab(45.99% 0.0687 -0.1983)
OKLCHoklch(45.99% 0.21 289.1)
XYZxyz(15.2054, 8.2835, 51.8262)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C30C2 #96C230
analogous
#304DC2 #5C30C2 #A530C2
triadic
#5C30C2 #C25C30 #30C25C
tetradic
#5C30C2 #C2304D #96C230 #30C2A5
square
#5C30C2 #C2304D #96C230 #30C2A5
split-complementary
#5C30C2 #C2A530 #4DC230
monochromatic
#2D1860 #452491 #5C30C2 #7F59D6 #A58AE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C30C2#FFFFFF#000000##FFFFFF
##5C30C21.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)
#0054C6
Deuteranopia (green-blind)
#004EBF
Tritanopia (blue-blind)
#355977
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c30c2;
/* rgb */ color: rgb(92, 48, 194);
/* oklch */ color: oklch(46.0% 0.210 289.1);
Tailwind
colors: {
  custom: {
    50: '#956dd6',
    500: '#5c30c2',
    950: '#000000',
  },
}
SCSS
$custom: #5c30c2;
$custom-light: #956dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c30c2",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 194
  },
  "hsl": {
    "h": 258.082,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45989,
    "c": 0.20985,
    "h": 289.1
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#5C30C2
secondary
#B6CC82
accent
#E344B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5C30C2

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

Preview Lab → · Contrast checker → · Palette generator →

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