#4C2EA1#4C2EA1

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

Color values

HEX#4C2EA1
RGBrgb(76, 46, 161)
HSLhsl(256, 56%, 41%)
HSVhsv(256, 71%, 63%)
CMYKcmyk(52.8%, 71.4%, 0%, 36.9%)
CIE-LABlab(29.57, 42.63, -57.56)
CIE-LCHlch(29.57, 71.63, 306.53°)
OKLaboklab(41.16% 0.0544 -0.1653)
OKLCHoklch(41.16% 0.174 288.2)
XYZxyz(10.3886, 6.0632, 34.3342)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EA1 #83A12E
analogous
#2E49A1 #4C2EA1 #852EA1
triadic
#4C2EA1 #A14C2E #2EA14C
tetradic
#4C2EA1 #A12E49 #83A12E #2EA185
square
#4C2EA1 #A12E49 #83A12E #2EA185
split-complementary
#4C2EA1 #A1852E #49A12E
monochromatic
#1F1342 #362071 #4C2EA1 #6643C9 #8D73D7

Accessibility & contrast

On white

9.49
#4C2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4C2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EA1
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EA1#FFFFFF#000000##FFFFFF
##4C2EA11.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#2C4C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ea1;
/* rgb */ color: rgb(76, 46, 161);
/* oklch */ color: oklch(41.2% 0.174 288.2);
Tailwind
colors: {
  custom: {
    50: '#8769be',
    500: '#4c2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ea1;
$custom-light: #8769be;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ea1",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 255.652,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41156,
    "c": 0.17407,
    "h": 288.2
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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