#5C30B6#5C30B6

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

Color values

HEX#5C30B6
RGBrgb(92, 48, 182)
HSLhsl(260, 58%, 45%)
HSVhsv(260, 74%, 71%)
CMYKcmyk(49.5%, 73.6%, 0%, 28.6%)
CIE-LABlab(33.49, 50.18, -63.66)
CIE-LCHlch(33.49, 81.06, 308.25°)
OKLaboklab(44.9% 0.0717 -0.1827)
OKLCHoklch(44.9% 0.196 291.4)
XYZxyz(13.9117, 7.7661, 45.0129)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C30B6 #8AB630
analogous
#3047B6 #5C30B6 #9F30B6
triadic
#5C30B6 #B65C30 #30B65C
tetradic
#5C30B6 #B63047 #8AB630 #30B69F
square
#5C30B6 #B63047 #8AB630 #30B69F
split-complementary
#5C30B6 #B69F30 #47B630
monochromatic
#2B1655 #442386 #5C30B6 #7C52D1 #A082DE

Accessibility & contrast

On white

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

On black

2.55
#5C30B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5C30B6#FFFFFF#000000##FFFFFF
##5C30B61.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#3E5470
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5c30b6;
/* rgb */ color: rgb(92, 48, 182);
/* oklch */ color: oklch(44.9% 0.196 291.4);
Tailwind
colors: {
  custom: {
    50: '#936dcd',
    500: '#5c30b6',
    950: '#000000',
  },
}
SCSS
$custom: #5c30b6;
$custom-light: #936dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c30b6",
  "rgb": {
    "r": 92,
    "g": 48,
    "b": 182
  },
  "hsl": {
    "h": 259.701,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44903,
    "c": 0.19627,
    "h": 291.4
  },
  "luminance": 0.07767
}

Semantic roles & 50–950 ramp

primary
#5C30B6
secondary
#AEC77B
accent
#E146AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5C30B6

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

Preview Lab → · Contrast checker → · Palette generator →

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