#5C2DCC#5C2DCC

#5C2DCC is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.224 H 287.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5C2DCC
RGBrgb(92, 45, 204)
HSLhsl(258, 64%, 49%)
HSVhsv(258, 78%, 80%)
CMYKcmyk(54.9%, 77.9%, 0%, 20%)
CIE-LABlab(35.02, 57.56, -74.06)
CIE-LCHlch(35.02, 93.80, 307.85°)
OKLaboklab(46.59% 0.0681 -0.2131)
OKLCHoklch(46.59% 0.224 287.7)
XYZxyz(16.2479, 8.5109, 57.9017)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DCC #9DCC2D
analogous
#2D4ECC #5C2DCC #AC2DCC
triadic
#5C2DCC #CC5C2D #2DCC5C
tetradic
#5C2DCC #CC2D4E #9DCC2D #2DCCAC
square
#5C2DCC #CC2D4E #9DCC2D #2DCCAC
split-complementary
#5C2DCC #CCAC2D #4ECC2D
monochromatic
#2F1768 #45229A #5C2DCC #815BDB #A88DE6

Accessibility & contrast

On white

7.77
#5C2DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5C2DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DCC
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DCC#FFFFFF#000000##FFFFFF
##5C2DCC1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#2B5B7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c2dcc;
/* rgb */ color: rgb(92, 45, 204);
/* oklch */ color: oklch(46.6% 0.224 287.7);
Tailwind
colors: {
  custom: {
    50: '#966cdd',
    500: '#5c2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5c2dcc;
$custom-light: #966cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2dcc",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 257.736,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46593,
    "c": 0.22374,
    "h": 287.7
  },
  "luminance": 0.08512
}

Semantic roles & 50–950 ramp

primary
#5C2DCC
secondary
#BAD085
accent
#E741B6
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5C2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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