#4C2EA3#4C2EA3

#4C2EA3 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.177 H 287.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4C2EA3
RGBrgb(76, 46, 163)
HSLhsl(255, 56%, 41%)
HSVhsv(255, 72%, 64%)
CMYKcmyk(53.4%, 71.8%, 0%, 36.1%)
CIE-LABlab(29.75, 43.22, -58.48)
CIE-LCHlch(29.75, 72.72, 306.47°)
OKLaboklab(41.34% 0.054 -0.168)
OKLCHoklch(41.34% 0.177 287.8)
XYZxyz(10.5664, 6.1343, 35.2705)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EA3 #85A32E
analogous
#2E4AA3 #4C2EA3 #862EA3
triadic
#4C2EA3 #A34C2E #2EA34C
tetradic
#4C2EA3 #A32E4A #85A32E #2EA386
square
#4C2EA3 #A32E4A #85A32E #2EA386
split-complementary
#4C2EA3 #A3862E #4AA32E
monochromatic
#1F1344 #362173 #4C2EA3 #6644CA #8D74D8

Accessibility & contrast

On white

9.43
#4C2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2EA3
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EA3#FFFFFF#000000##FFFFFF
##4C2EA31.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#2A4D65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ea3;
/* rgb */ color: rgb(76, 46, 163);
/* oklch */ color: oklch(41.3% 0.177 287.8);
Tailwind
colors: {
  custom: {
    50: '#8769bf',
    500: '#4c2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ea3;
$custom-light: #8769bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ea3",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 255.385,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41337,
    "c": 0.17651,
    "h": 287.8
  },
  "luminance": 0.06135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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