#4C2EA2#4C2EA2

#4C2EA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.175 H 288.0°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4C2EA2
RGBrgb(76, 46, 162)
HSLhsl(256, 56%, 41%)
HSVhsv(256, 72%, 64%)
CMYKcmyk(53.1%, 71.6%, 0%, 36.5%)
CIE-LABlab(29.66, 42.93, -58.02)
CIE-LCHlch(29.66, 72.17, 306.50°)
OKLaboklab(41.25% 0.0542 -0.1667)
OKLCHoklch(41.25% 0.175 288)
XYZxyz(10.4772, 6.0986, 34.8005)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EA2 #84A22E
analogous
#2E4AA2 #4C2EA2 #862EA2
triadic
#4C2EA2 #A24C2E #2EA24C
tetradic
#4C2EA2 #A22E4A #84A22E #2EA286
square
#4C2EA2 #A22E4A #84A22E #2EA286
split-complementary
#4C2EA2 #A2862E #4AA22E
monochromatic
#1F1343 #362072 #4C2EA2 #6643CA #8D73D7

Accessibility & contrast

On white

9.46
#4C2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4C2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EA2
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EA2#FFFFFF#000000##FFFFFF
##4C2EA21.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#2B4C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ea2;
/* rgb */ color: rgb(76, 46, 162);
/* oklch */ color: oklch(41.2% 0.175 288.0);
Tailwind
colors: {
  custom: {
    50: '#8769bf',
    500: '#4c2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ea2;
$custom-light: #8769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ea2",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 255.517,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41247,
    "c": 0.17529,
    "h": 288
  },
  "luminance": 0.06099
}

Semantic roles & 50–950 ramp

primary
#4C2EA2
secondary
#AABF6D
accent
#DF49B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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