#4C2EAA#4C2EAA

#4C2EAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.185 H 286.5°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4C2EAA
RGBrgb(76, 46, 170)
HSLhsl(255, 57%, 42%)
HSVhsv(255, 73%, 67%)
CMYKcmyk(55.3%, 72.9%, 0%, 33.3%)
CIE-LABlab(30.38, 45.29, -61.66)
CIE-LCHlch(30.38, 76.51, 306.30°)
OKLaboklab(41.98% 0.0525 -0.1774)
OKLCHoklch(41.98% 0.185 286.5)
XYZxyz(11.2110, 6.3922, 38.6655)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2EAA #8CAA2E
analogous
#2E4EAA #4C2EAA #8A2EAA
triadic
#4C2EAA #AA4C2E #2EAA4C
tetradic
#4C2EAA #AA2E4E #8CAA2E #2EAA8A
square
#4C2EAA #AA2E4E #8CAA2E #2EAA8A
split-complementary
#4C2EAA #AA8A2E #4EAA2E
monochromatic
#21144A #36217A #4C2EAA #6848CD #9078DA

Accessibility & contrast

On white

9.22
#4C2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4C2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2EAA
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2EAA#FFFFFF#000000##FFFFFF
##4C2EAA1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAE
Deuteranopia (green-blind)
#0044A8
Tritanopia (blue-blind)
#234F69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2eaa;
/* rgb */ color: rgb(76, 46, 170);
/* oklch */ color: oklch(42.0% 0.185 286.5);
Tailwind
colors: {
  custom: {
    50: '#886ac4',
    500: '#4c2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #4c2eaa;
$custom-light: #886ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2eaa",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 254.516,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4198,
    "c": 0.18499,
    "h": 286.5
  },
  "luminance": 0.06393
}

Semantic roles & 50–950 ramp

primary
#4C2EAA
secondary
#AFC371
accent
#E147BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4C2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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