#4C218D#4C218D

#4C218D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.165 H 295.4°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4C218D
RGBrgb(76, 33, 141)
HSLhsl(264, 62%, 34%)
HSVhsv(264, 77%, 55%)
CMYKcmyk(46.1%, 76.6%, 0%, 44.7%)
CIE-LABlab(25.40, 43.64, -52.11)
CIE-LCHlch(25.40, 67.97, 309.95°)
OKLaboklab(37.66% 0.0708 -0.1493)
OKLCHoklch(37.66% 0.165 295.4)
XYZxyz(8.3308, 4.5471, 25.6329)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C218D #628D21
analogous
#212C8D #4C218D #82218D
triadic
#4C218D #8D4C21 #218D4C
tetradic
#4C218D #8D212C #628D21 #218D82
square
#4C218D #8D212C #628D21 #218D82
split-complementary
#4C218D #8D8221 #2C8D21
monochromatic
#170A2A #31155B #4C218D #672DBF #8752D6

Accessibility & contrast

On white

11.00
#4C218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4C218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C218D
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C218D#FFFFFF#000000##FFFFFF
##4C218D1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#3A3E55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c218d;
/* rgb */ color: rgb(76, 33, 141);
/* oklch */ color: oklch(37.7% 0.165 295.4);
Tailwind
colors: {
  custom: {
    50: '#8561af',
    500: '#4c218d',
    950: '#000000',
  },
}
SCSS
$custom: #4c218d;
$custom-light: #8561af;
$custom-dark: #000000;
JSON
{
  "hex": "#4c218d",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 263.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37656,
    "c": 0.16523,
    "h": 295.4
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#4C218D
secondary
#90BA50
accent
#E543A4
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C218D

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

Preview Lab → · Contrast checker → · Palette generator →

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