#4C2FCC#4C2FCC

#4C2FCC is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.4% C 0.224 H 281.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#4C2FCC
RGBrgb(76, 47, 204)
HSLhsl(251, 63%, 49%)
HSVhsv(251, 77%, 80%)
CMYKcmyk(62.7%, 77%, 0%, 20%)
CIE-LABlab(33.83, 54.76, -76.08)
CIE-LCHlch(33.83, 93.74, 305.75°)
OKLaboklab(45.4% 0.0434 -0.2195)
OKLCHoklch(45.4% 0.224 281.2)
XYZxyz(14.8927, 7.9280, 57.8605)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FCC #AFCC2F
analogous
#2F61CC #4C2FCC #9B2FCC
triadic
#4C2FCC #CC4C2F #2FCC4C
tetradic
#4C2FCC #CC2F61 #AFCC2F #2FCC9B
square
#4C2FCC #CC2F61 #AFCC2F #2FCC9B
split-complementary
#4C2FCC #CC9B2F #61CC2F
monochromatic
#271869 #39249A #4C2FCC #755EDA #A090E5

Accessibility & contrast

On white

8.12
#4C2FCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4C2FCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FCC
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FCC#FFFFFF#000000##FFFFFF
##4C2FCC1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D0
Deuteranopia (green-blind)
#004AC9
Tritanopia (blue-blind)
#005D7D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4c2fcc;
/* rgb */ color: rgb(76, 47, 204);
/* oklch */ color: oklch(45.4% 0.224 281.2);
Tailwind
colors: {
  custom: {
    50: '#8e6cdd',
    500: '#4c2fcc',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fcc;
$custom-light: #8e6cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fcc",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 204
  },
  "hsl": {
    "h": 251.083,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45396,
    "c": 0.22376,
    "h": 281.2
  },
  "luminance": 0.07929
}

Semantic roles & 50–950 ramp

primary
#4C2FCC
secondary
#C2D087
accent
#E642C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C2FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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