#4C2EC3#4C2EC3

#4C2EC3 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.214 H 282.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#4C2EC3
RGBrgb(76, 46, 195)
HSLhsl(252, 62%, 47%)
HSVhsv(252, 76%, 76%)
CMYKcmyk(61%, 76.4%, 0%, 23.5%)
CIE-LABlab(32.77, 52.63, -72.58)
CIE-LCHlch(32.77, 89.65, 305.95°)
OKLaboklab(44.38% 0.0464 -0.2093)
OKLCHoklch(44.38% 0.214 282.5)
XYZxyz(13.8047, 7.4297, 52.3258)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EC3 #A5C32E
analogous
#2E5AC3 #4C2EC3 #972EC3
triadic
#4C2EC3 #C34C2E #2EC34C
tetradic
#4C2EC3 #C32E5A #A5C32E #2EC397
square
#4C2EC3 #C32E5A #A5C32E #2EC397
split-complementary
#4C2EC3 #C3972E #5AC32E
monochromatic
#251760 #392291 #4C2EC3 #7157D7 #9B88E3

Accessibility & contrast

On white

8.45
#4C2EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4C2EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EC3
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EC3#FFFFFF#000000##FFFFFF
##4C2EC31.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#0048C0
Tritanopia (blue-blind)
#005977
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4c2ec3;
/* rgb */ color: rgb(76, 46, 195);
/* oklch */ color: oklch(44.4% 0.214 282.5);
Tailwind
colors: {
  custom: {
    50: '#8c6bd6',
    500: '#4c2ec3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ec3;
$custom-light: #8c6bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ec3",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 252.081,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44381,
    "c": 0.21437,
    "h": 282.5
  },
  "luminance": 0.07431
}

Semantic roles & 50–950 ramp

primary
#4C2EC3
secondary
#BDCD80
accent
#E543C4
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C2EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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