#4C2ECB#4C2ECB

#4C2ECB is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.224 H 281.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#4C2ECB
RGBrgb(76, 46, 203)
HSLhsl(251, 63%, 49%)
HSVhsv(251, 77%, 80%)
CMYKcmyk(62.6%, 77.3%, 0%, 20.4%)
CIE-LABlab(33.57, 54.95, -75.94)
CIE-LCHlch(33.57, 93.73, 305.89°)
OKLaboklab(45.18% 0.0442 -0.2191)
OKLCHoklch(45.18% 0.224 281.4)
XYZxyz(14.7336, 7.8012, 57.2177)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2ECB #ADCB2E
analogous
#2E5FCB #4C2ECB #9B2ECB
triadic
#4C2ECB #CB4C2E #2ECB4C
tetradic
#4C2ECB #CB2E5F #ADCB2E #2ECB9B
square
#4C2ECB #CB2E5F #ADCB2E #2ECB9B
split-complementary
#4C2ECB #CB9B2E #5FCB2E
monochromatic
#271767 #392399 #4C2ECB #745CDA #9F8EE5

Accessibility & contrast

On white

8.20
#4C2ECB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4C2ECB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2ECB
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2ECB#FFFFFF#000000##FFFFFF
##4C2ECB1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CF
Deuteranopia (green-blind)
#0049C8
Tritanopia (blue-blind)
#005C7C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c2ecb;
/* rgb */ color: rgb(76, 46, 203);
/* oklch */ color: oklch(45.2% 0.224 281.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bdc',
    500: '#4c2ecb',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ecb;
$custom-light: #8e6bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ecb",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 203
  },
  "hsl": {
    "h": 251.465,
    "s": 63.052,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4518,
    "c": 0.22351,
    "h": 281.4
  },
  "luminance": 0.07802
}

Semantic roles & 50–950 ramp

primary
#4C2ECB
secondary
#C1D085
accent
#E642C7
background
#F9F6FD
surface
#F2EBFB
border
#CCC6D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C2ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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