#4C2DAE#4C2DAE

#4C2DAE is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.191 H 285.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4C2DAE
RGBrgb(76, 45, 174)
HSLhsl(254, 59%, 43%)
HSVhsv(254, 74%, 68%)
CMYKcmyk(56.3%, 74.1%, 0%, 31.8%)
CIE-LABlab(30.57, 46.99, -63.76)
CIE-LCHlch(30.57, 79.20, 306.39°)
OKLaboklab(42.22% 0.0524 -0.1835)
OKLCHoklch(42.22% 0.191 285.9)
XYZxyz(11.5566, 6.4686, 40.6758)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DAE #8FAE2D
analogous
#2D4EAE #4C2DAE #8D2DAE
triadic
#4C2DAE #AE4C2D #2DAE4C
tetradic
#4C2DAE #AE2D4E #8FAE2D #2DAE8D
square
#4C2DAE #AE2D4E #8FAE2D #2DAE8D
split-complementary
#4C2DAE #AE8D2D #4EAE2D
monochromatic
#22144D #37207D #4C2DAE #6948D0 #9179DC

Accessibility & contrast

On white

9.16
#4C2DAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4C2DAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DAE
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DAE#FFFFFF#000000##FFFFFF
##4C2DAE1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#1E506B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2dae;
/* rgb */ color: rgb(76, 45, 174);
/* oklch */ color: oklch(42.2% 0.191 285.9);
Tailwind
colors: {
  custom: {
    50: '#8969c7',
    500: '#4c2dae',
    950: '#000000',
  },
}
SCSS
$custom: #4c2dae;
$custom-light: #8969c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2dae",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 174
  },
  "hsl": {
    "h": 254.419,
    "s": 58.904,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42223,
    "c": 0.19084,
    "h": 285.9
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#4C2DAE
secondary
#B1C472
accent
#E246BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2DAE

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

Preview Lab → · Contrast checker → · Palette generator →

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