#4C2EA4#4C2EA4

#4C2EA4 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.4% C 0.178 H 287.6°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2EA4
RGBrgb(76, 46, 164)
HSLhsl(255, 56%, 41%)
HSVhsv(255, 72%, 64%)
CMYKcmyk(53.7%, 72%, 0%, 35.7%)
CIE-LABlab(29.84, 43.52, -58.94)
CIE-LCHlch(29.84, 73.26, 306.44°)
OKLaboklab(41.43% 0.0538 -0.1694)
OKLCHoklch(41.43% 0.178 287.6)
XYZxyz(10.6563, 6.1703, 35.7442)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EA4 #86A42E
analogous
#2E4BA4 #4C2EA4 #872EA4
triadic
#4C2EA4 #A44C2E #2EA44C
tetradic
#4C2EA4 #A42E4B #86A42E #2EA487
square
#4C2EA4 #A42E4B #86A42E #2EA487
split-complementary
#4C2EA4 #A4872E #4BA42E
monochromatic
#201344 #362174 #4C2EA4 #6745CB #8E74D8

Accessibility & contrast

On white

9.40
#4C2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4C2EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EA4
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EA4#FFFFFF#000000##FFFFFF
##4C2EA41.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#294D66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ea4;
/* rgb */ color: rgb(76, 46, 164);
/* oklch */ color: oklch(41.4% 0.178 287.6);
Tailwind
colors: {
  custom: {
    50: '#8769c0',
    500: '#4c2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ea4;
$custom-light: #8769c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ea4",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 255.254,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41428,
    "c": 0.17773,
    "h": 287.6
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#4C2EA4
secondary
#ABC06E
accent
#DF48B9
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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