#4C219E#4C219E

#4C219E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.184 H 290.9°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#4C219E
RGBrgb(76, 33, 158)
HSLhsl(261, 65%, 37%)
HSVhsv(261, 79%, 62%)
CMYKcmyk(51.9%, 79.1%, 0%, 38%)
CIE-LABlab(27.00, 48.28, -59.96)
CIE-LCHlch(27.00, 76.98, 308.84°)
OKLaboklab(39.26% 0.066 -0.1723)
OKLCHoklch(39.26% 0.184 290.9)
XYZxyz(9.6941, 5.0924, 32.8133)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C219E #739E21
analogous
#21359E #4C219E #8B219E
triadic
#4C219E #9E4C21 #219E4C
tetradic
#4C219E #9E2135 #739E21 #219E8B
square
#4C219E #9E2135 #739E21 #219E8B
split-complementary
#4C219E #9E8B21 #359E21
monochromatic
#1B0C39 #34166B #4C219E #642CD1 #895CDD

Accessibility & contrast

On white

10.40
#4C219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C219E
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C219E#FFFFFF#000000##FFFFFF
##4C219E1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#2F455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c219e;
/* rgb */ color: rgb(76, 33, 158);
/* oklch */ color: oklch(39.3% 0.184 290.9);
Tailwind
colors: {
  custom: {
    50: '#8762bc',
    500: '#4c219e',
    950: '#000000',
  },
}
SCSS
$custom: #4c219e;
$custom-light: #8762bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c219e",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 260.64,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39257,
    "c": 0.18448,
    "h": 290.9
  },
  "luminance": 0.05093
}

Semantic roles & 50–950 ramp

primary
#4C219E
secondary
#9EC159
accent
#E83FAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C219E

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

Preview Lab → · Contrast checker → · Palette generator →

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