#4C218F#4C218F

#4C218F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.168 H 294.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#4C218F
RGBrgb(76, 33, 143)
HSLhsl(263, 63%, 35%)
HSVhsv(263, 77%, 56%)
CMYKcmyk(46.9%, 76.9%, 0%, 43.9%)
CIE-LABlab(25.59, 44.18, -53.05)
CIE-LCHlch(25.59, 69.04, 309.79°)
OKLaboklab(37.84% 0.0703 -0.152)
OKLCHoklch(37.84% 0.168 294.8)
XYZxyz(8.4809, 4.6072, 26.4237)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C218F #648F21
analogous
#212D8F #4C218F #83218F
triadic
#4C218F #8F4C21 #218F4C
tetradic
#4C218F #8F212D #648F21 #218F83
square
#4C218F #8F212D #648F21 #218F83
split-complementary
#4C218F #8F8321 #2D8F21
monochromatic
#170A2C #32165D #4C218F #662CC1 #8753D7

Accessibility & contrast

On white

10.93
#4C218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C218F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C218F#FFFFFF#000000##FFFFFF
##4C218F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#393F57
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4c218f;
/* rgb */ color: rgb(76, 33, 143);
/* oklch */ color: oklch(37.8% 0.168 294.8);
Tailwind
colors: {
  custom: {
    50: '#8561b1',
    500: '#4c218f',
    950: '#000000',
  },
}
SCSS
$custom: #4c218f;
$custom-light: #8561b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c218f",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 263.455,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37839,
    "c": 0.16752,
    "h": 294.8
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#4C218F
secondary
#91BB51
accent
#E642A6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4C218F

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

Preview Lab → · Contrast checker → · Palette generator →

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