#4C218C#4C218C

#4C218C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.164 H 295.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#4C218C
RGBrgb(76, 33, 140)
HSLhsl(264, 62%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(45.7%, 76.4%, 0%, 45.1%)
CIE-LABlab(25.31, 43.37, -51.63)
CIE-LCHlch(25.31, 67.43, 310.03°)
OKLaboklab(37.57% 0.0711 -0.1479)
OKLCHoklch(37.57% 0.164 295.7)
XYZxyz(8.2567, 4.5175, 25.2428)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C218C #618C21
analogous
#212C8C #4C218C #82218C
triadic
#4C218C #8C4C21 #218C4C
tetradic
#4C218C #8C212C #618C21 #218C82
square
#4C218C #8C212C #618C21 #218C82
split-complementary
#4C218C #8C8221 #2C8C21
monochromatic
#160A29 #31155A #4C218C #672DBE #8751D6

Accessibility & contrast

On white

11.03
#4C218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4C218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C218C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C218C#FFFFFF#000000##FFFFFF
##4C218C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#3A3D55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c218c;
/* rgb */ color: rgb(76, 33, 140);
/* oklch */ color: oklch(37.6% 0.164 295.7);
Tailwind
colors: {
  custom: {
    50: '#8561af',
    500: '#4c218c',
    950: '#000000',
  },
}
SCSS
$custom: #4c218c;
$custom-light: #8561af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c218c",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 264.112,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37565,
    "c": 0.16409,
    "h": 295.7
  },
  "luminance": 0.04518
}

Semantic roles & 50–950 ramp

primary
#4C218C
secondary
#8FB94F
accent
#E543A4
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C218C

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

Preview Lab → · Contrast checker → · Palette generator →

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