#4C2DC7#4C2DC7

#4C2DC7 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.7% C 0.220 H 282.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#4C2DC7
RGBrgb(76, 45, 199)
HSLhsl(252, 63%, 48%)
HSVhsv(252, 77%, 78%)
CMYKcmyk(61.8%, 77.4%, 0%, 22%)
CIE-LABlab(33.00, 54.27, -74.54)
CIE-LCHlch(33.00, 92.20, 306.06°)
OKLaboklab(44.66% 0.0459 -0.215)
OKLCHoklch(44.66% 0.22 282)
XYZxyz(14.2245, 7.5358, 54.7267)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DC7 #A8C72D
analogous
#2D5BC7 #4C2DC7 #992DC7
triadic
#4C2DC7 #C74C2D #2DC74C
tetradic
#4C2DC7 #C72D5B #A8C72D #2DC799
square
#4C2DC7 #C72D5B #A8C72D #2DC799
split-complementary
#4C2DC7 #C7992D #5BC72D
monochromatic
#261663 #392295 #4C2DC7 #7258D9 #9C8AE5

Accessibility & contrast

On white

8.38
#4C2DC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#4C2DC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DC7
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DC7#FFFFFF#000000##FFFFFF
##4C2DC71.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053CB
Deuteranopia (green-blind)
#0048C4
Tritanopia (blue-blind)
#005A79
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c2dc7;
/* rgb */ color: rgb(76, 45, 199);
/* oklch */ color: oklch(44.7% 0.220 282.0);
Tailwind
colors: {
  custom: {
    50: '#8d6bd9',
    500: '#4c2dc7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2dc7;
$custom-light: #8d6bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2dc7",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 252.078,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44662,
    "c": 0.21985,
    "h": 282
  },
  "luminance": 0.07537
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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