#4C2EC0#4C2EC0

#4C2EC0 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.211 H 282.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#4C2EC0
RGBrgb(76, 46, 192)
HSLhsl(252, 61%, 47%)
HSVhsv(252, 76%, 75%)
CMYKcmyk(60.4%, 76%, 0%, 24.7%)
CIE-LABlab(32.47, 51.75, -71.30)
CIE-LCHlch(32.47, 88.11, 305.97°)
OKLaboklab(44.09% 0.0471 -0.2056)
OKLCHoklch(44.09% 0.211 282.9)
XYZxyz(13.4690, 7.2953, 50.5573)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EC0 #A2C02E
analogous
#2E59C0 #4C2EC0 #952EC0
triadic
#4C2EC0 #C04C2E #2EC04C
tetradic
#4C2EC0 #C02E59 #A2C02E #2EC095
square
#4C2EC0 #C02E59 #A2C02E #2EC095
split-complementary
#4C2EC0 #C0952E #59C02E
monochromatic
#25165D #38228F #4C2EC0 #7055D6 #9986E2

Accessibility & contrast

On white

8.54
#4C2EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4C2EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EC0
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EC0#FFFFFF#000000##FFFFFF
##4C2EC01.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C4
Deuteranopia (green-blind)
#0047BD
Tritanopia (blue-blind)
#005875
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4c2ec0;
/* rgb */ color: rgb(76, 46, 192);
/* oklch */ color: oklch(44.1% 0.211 282.9);
Tailwind
colors: {
  custom: {
    50: '#8c6bd4',
    500: '#4c2ec0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ec0;
$custom-light: #8c6bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ec0",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 192
  },
  "hsl": {
    "h": 252.329,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44086,
    "c": 0.21092,
    "h": 282.9
  },
  "luminance": 0.07296
}

Semantic roles & 50–950 ramp

primary
#4C2EC0
secondary
#BCCC7E
accent
#E443C3
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4C2EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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