#4C2DC6#4C2DC6

#4C2DC6 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.219 H 282.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#4C2DC6
RGBrgb(76, 45, 198)
HSLhsl(252, 63%, 48%)
HSVhsv(252, 77%, 78%)
CMYKcmyk(61.6%, 77.3%, 0%, 22.4%)
CIE-LABlab(32.90, 53.98, -74.12)
CIE-LCHlch(32.90, 91.69, 306.06°)
OKLaboklab(44.56% 0.0461 -0.2138)
OKLCHoklch(44.56% 0.219 282.2)
XYZxyz(14.1087, 7.4895, 54.1173)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DC6 #A7C62D
analogous
#2D5AC6 #4C2DC6 #992DC6
triadic
#4C2DC6 #C64C2D #2DC64C
tetradic
#4C2DC6 #C62D5A #A7C62D #2DC699
square
#4C2DC6 #C62D5A #A7C62D #2DC699
split-complementary
#4C2DC6 #C6992D #5AC62D
monochromatic
#261662 #392294 #4C2DC6 #7257D9 #9C89E4

Accessibility & contrast

On white

8.41
#4C2DC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4C2DC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DC6
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DC6#FFFFFF#000000##FFFFFF
##4C2DC61.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052CA
Deuteranopia (green-blind)
#0048C3
Tritanopia (blue-blind)
#005A79
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4c2dc6;
/* rgb */ color: rgb(76, 45, 198);
/* oklch */ color: oklch(44.6% 0.219 282.2);
Tailwind
colors: {
  custom: {
    50: '#8d6bd9',
    500: '#4c2dc6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2dc6;
$custom-light: #8d6bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2dc6",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 198
  },
  "hsl": {
    "h": 252.157,
    "s": 62.963,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44562,
    "c": 0.21871,
    "h": 282.2
  },
  "luminance": 0.0749
}

Semantic roles & 50–950 ramp

primary
#4C2DC6
secondary
#BECE81
accent
#E642C5
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C2DC6

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

Preview Lab → · Contrast checker → · Palette generator →

#4C2DC6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva