#4C218E#4C218E

#4C218E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.166 H 295.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4C218E
RGBrgb(76, 33, 142)
HSLhsl(264, 62%, 34%)
HSVhsv(264, 77%, 56%)
CMYKcmyk(46.5%, 76.8%, 0%, 44.3%)
CIE-LABlab(25.49, 43.91, -52.58)
CIE-LCHlch(25.49, 68.50, 309.87°)
OKLaboklab(37.75% 0.0706 -0.1507)
OKLCHoklch(37.75% 0.166 295.1)
XYZxyz(8.4055, 4.5770, 26.0265)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C218E #638E21
analogous
#212C8E #4C218E #83218E
triadic
#4C218E #8E4C21 #218E4C
tetradic
#4C218E #8E212C #638E21 #218E83
square
#4C218E #8E212C #638E21 #218E83
split-complementary
#4C218E #8E8321 #2C8E21
monochromatic
#170A2B #31155C #4C218E #672DC0 #8752D7

Accessibility & contrast

On white

10.96
#4C218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4C218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C218E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C218E#FFFFFF#000000##FFFFFF
##4C218E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#393E56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4c218e;
/* rgb */ color: rgb(76, 33, 142);
/* oklch */ color: oklch(37.7% 0.166 295.1);
Tailwind
colors: {
  custom: {
    50: '#8561b0',
    500: '#4c218e',
    950: '#000000',
  },
}
SCSS
$custom: #4c218e;
$custom-light: #8561b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c218e",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 263.67,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37747,
    "c": 0.16638,
    "h": 295.1
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#4C218E
secondary
#91BA50
accent
#E542A5
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C218E

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

Preview Lab → · Contrast checker → · Palette generator →

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