#4C219D#4C219D

#4C219D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.183 H 291.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#4C219D
RGBrgb(76, 33, 157)
HSLhsl(261, 65%, 37%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(51.6%, 79%, 0%, 38.4%)
CIE-LABlab(26.90, 48.01, -59.51)
CIE-LCHlch(26.90, 76.46, 308.90°)
OKLaboklab(39.16% 0.0663 -0.171)
OKLCHoklch(39.16% 0.183 291.2)
XYZxyz(9.6084, 5.0581, 32.3618)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C219D #729D21
analogous
#21349D #4C219D #8A219D
triadic
#4C219D #9D4C21 #219D4C
tetradic
#4C219D #9D2134 #729D21 #219D8A
square
#4C219D #9D2134 #729D21 #219D8A
split-complementary
#4C219D #9D8A21 #349D21
monochromatic
#1B0C38 #34166A #4C219D #642CD0 #885CDD

Accessibility & contrast

On white

10.44
#4C219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C219D
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C219D#FFFFFF#000000##FFFFFF
##4C219D1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#30445F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c219d;
/* rgb */ color: rgb(76, 33, 157);
/* oklch */ color: oklch(39.2% 0.183 291.2);
Tailwind
colors: {
  custom: {
    50: '#8762bb',
    500: '#4c219d',
    950: '#000000',
  },
}
SCSS
$custom: #4c219d;
$custom-light: #8762bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c219d",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 260.806,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39161,
    "c": 0.18336,
    "h": 291.2
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

primary
#4C219D
secondary
#9DC159
accent
#E840AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C219D

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

Preview Lab → · Contrast checker → · Palette generator →

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