#4C2AAE#4C2AAE

#4C2AAE is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.194 H 286.4°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4C2AAE
RGBrgb(76, 42, 174)
HSLhsl(255, 61%, 42%)
HSVhsv(255, 76%, 68%)
CMYKcmyk(56.3%, 75.9%, 0%, 31.8%)
CIE-LABlab(30.03, 48.51, -64.64)
CIE-LCHlch(30.03, 80.82, 306.89°)
OKLaboklab(41.85% 0.0547 -0.1861)
OKLCHoklch(41.85% 0.194 286.4)
XYZxyz(11.4461, 6.2478, 40.6390)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AAE #8CAE2A
analogous
#2A4AAE #4C2AAE #8E2AAE
triadic
#4C2AAE #AE4C2A #2AAE4C
tetradic
#4C2AAE #AE2A4A #8CAE2A #2AAE8E
square
#4C2AAE #AE2A4A #8CAE2A #2AAE8E
split-complementary
#4C2AAE #AE8E2A #4AAE2A
monochromatic
#21124B #361E7D #4C2AAE #6843D2 #9075DE

Accessibility & contrast

On white

9.33
#4C2AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C2AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AAE
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AAE#FFFFFF#000000##FFFFFF
##4C2AAE1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0043AC
Tritanopia (blue-blind)
#1E4F6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2aae;
/* rgb */ color: rgb(76, 42, 174);
/* oklch */ color: oklch(41.8% 0.194 286.4);
Tailwind
colors: {
  custom: {
    50: '#8968c7',
    500: '#4c2aae',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aae;
$custom-light: #8968c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aae",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 255.455,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41846,
    "c": 0.19392,
    "h": 286.4
  },
  "luminance": 0.06248
}

Semantic roles & 50–950 ramp

primary
#4C2AAE
secondary
#AFC56F
accent
#E444BB
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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