#4C2ECA#4C2ECA

#4C2ECA is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.222 H 281.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#4C2ECA
RGBrgb(76, 46, 202)
HSLhsl(252, 63%, 49%)
HSVhsv(252, 77%, 79%)
CMYKcmyk(62.4%, 77.2%, 0%, 20.8%)
CIE-LABlab(33.46, 54.66, -75.52)
CIE-LCHlch(33.46, 93.22, 305.90°)
OKLaboklab(45.08% 0.0445 -0.2179)
OKLCHoklch(45.08% 0.222 281.5)
XYZxyz(14.6148, 7.7537, 56.5921)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2ECA #ACCA2E
analogous
#2E5ECA #4C2ECA #9A2ECA
triadic
#4C2ECA #CA4C2E #2ECA4C
tetradic
#4C2ECA #CA2E5E #ACCA2E #2ECA9A
square
#4C2ECA #CA2E5E #ACCA2E #2ECA9A
split-complementary
#4C2ECA #CA9A2E #5ECA2E
monochromatic
#261766 #392398 #4C2ECA #745BDA #9E8DE5

Accessibility & contrast

On white

8.23
#4C2ECA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4C2ECA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2ECA
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2ECA#FFFFFF#000000##FFFFFF
##4C2ECA1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#0049C7
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c2eca;
/* rgb */ color: rgb(76, 46, 202);
/* oklch */ color: oklch(45.1% 0.222 281.5);
Tailwind
colors: {
  custom: {
    50: '#8e6bdb',
    500: '#4c2eca',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eca;
$custom-light: #8e6bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eca",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 251.538,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45079,
    "c": 0.22237,
    "h": 281.5
  },
  "luminance": 0.07755
}

Semantic roles & 50–950 ramp

primary
#4C2ECA
secondary
#C1CF84
accent
#E642C6
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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