#4C2EC9#4C2EC9

#4C2EC9 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.221 H 281.7°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#4C2EC9
RGBrgb(76, 46, 201)
HSLhsl(252, 63%, 48%)
HSVhsv(252, 77%, 79%)
CMYKcmyk(62.2%, 77.1%, 0%, 21.2%)
CIE-LABlab(33.36, 54.37, -75.10)
CIE-LCHlch(33.36, 92.72, 305.90°)
OKLaboklab(44.98% 0.0447 -0.2167)
OKLCHoklch(44.98% 0.221 281.7)
XYZxyz(14.4968, 7.7065, 55.9706)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EC9 #ABC92E
analogous
#2E5DC9 #4C2EC9 #992EC9
triadic
#4C2EC9 #C94C2E #2EC94C
tetradic
#4C2EC9 #C92E5D #ABC92E #2EC999
square
#4C2EC9 #C92E5D #ABC92E #2EC999
split-complementary
#4C2EC9 #C9992E #5DC92E
monochromatic
#261765 #392397 #4C2EC9 #735BD9 #9E8DE5

Accessibility & contrast

On white

8.26
#4C2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4C2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EC9
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EC9#FFFFFF#000000##FFFFFF
##4C2EC91.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CD
Deuteranopia (green-blind)
#0049C6
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c2ec9;
/* rgb */ color: rgb(76, 46, 201);
/* oklch */ color: oklch(45.0% 0.221 281.7);
Tailwind
colors: {
  custom: {
    50: '#8d6bdb',
    500: '#4c2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ec9;
$custom-light: #8d6bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ec9",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 251.613,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44979,
    "c": 0.22124,
    "h": 281.7
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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