#4C2DAD#4C2DAD

#4C2DAD is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.190 H 286.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#4C2DAD
RGBrgb(76, 45, 173)
HSLhsl(255, 59%, 43%)
HSVhsv(255, 74%, 68%)
CMYKcmyk(56.1%, 74%, 0%, 32.2%)
CIE-LABlab(30.47, 46.70, -63.31)
CIE-LCHlch(30.47, 78.67, 306.41°)
OKLaboklab(42.13% 0.0526 -0.1822)
OKLCHoklch(42.13% 0.19 286.1)
XYZxyz(11.4594, 6.4298, 40.1643)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DAD #8EAD2D
analogous
#2D4EAD #4C2DAD #8C2DAD
triadic
#4C2DAD #AD4C2D #2DAD4C
tetradic
#4C2DAD #AD2D4E #8EAD2D #2DAD8C
square
#4C2DAD #AD2D4E #8EAD2D #2DAD8C
split-complementary
#4C2DAD #AD8C2D #4EAD2D
monochromatic
#21144C #37207C #4C2DAD #6948CF #9178DC

Accessibility & contrast

On white

9.19
#4C2DAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2DAD
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DAD#FFFFFF#000000##FFFFFF
##4C2DAD1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#0044AB
Tritanopia (blue-blind)
#1F506A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2dad;
/* rgb */ color: rgb(76, 45, 173);
/* oklch */ color: oklch(42.1% 0.190 286.1);
Tailwind
colors: {
  custom: {
    50: '#8969c7',
    500: '#4c2dad',
    950: '#000000',
  },
}
SCSS
$custom: #4c2dad;
$custom-light: #8969c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2dad",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 173
  },
  "hsl": {
    "h": 254.531,
    "s": 58.716,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42129,
    "c": 0.18965,
    "h": 286.1
  },
  "luminance": 0.0643
}

Semantic roles & 50–950 ramp

primary
#4C2DAD
secondary
#B0C472
accent
#E246BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C2DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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