#4C218A#4C218A

#4C218A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.162 H 296.3°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#4C218A
RGBrgb(76, 33, 138)
HSLhsl(265, 61%, 34%)
HSVhsv(265, 76%, 54%)
CMYKcmyk(44.9%, 76.1%, 0%, 45.9%)
CIE-LABlab(25.13, 42.82, -50.68)
CIE-LCHlch(25.13, 66.35, 310.20°)
OKLaboklab(37.38% 0.0716 -0.1451)
OKLCHoklch(37.38% 0.162 296.3)
XYZxyz(8.1106, 4.4590, 24.4732)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C218A #5F8A21
analogous
#212A8A #4C218A #80218A
triadic
#4C218A #8A4C21 #218A4C
tetradic
#4C218A #8A212A #5F8A21 #218A80
square
#4C218A #8A212A #5F8A21 #218A80
split-complementary
#4C218A #8A8021 #2A8A21
monochromatic
#160927 #311559 #4C218A #672DBB #8750D5

Accessibility & contrast

On white

11.10
#4C218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4C218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C218A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C218A#FFFFFF#000000##FFFFFF
##4C218A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#3B3D54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c218a;
/* rgb */ color: rgb(76, 33, 138);
/* oklch */ color: oklch(37.4% 0.162 296.3);
Tailwind
colors: {
  custom: {
    50: '#8461ad',
    500: '#4c218a',
    950: '#000000',
  },
}
SCSS
$custom: #4c218a;
$custom-light: #8461ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4c218a",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 264.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37383,
    "c": 0.1618,
    "h": 296.3
  },
  "luminance": 0.04459
}

Semantic roles & 50–950 ramp

primary
#4C218A
secondary
#8DB94E
accent
#E543A2
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C218A

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

Preview Lab → · Contrast checker → · Palette generator →

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