#4C218B#4C218B

#4C218B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.163 H 296.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#4C218B
RGBrgb(76, 33, 139)
HSLhsl(264, 62%, 34%)
HSVhsv(264, 76%, 55%)
CMYKcmyk(45.3%, 76.3%, 0%, 45.5%)
CIE-LABlab(25.22, 43.10, -51.16)
CIE-LCHlch(25.22, 66.89, 310.11°)
OKLaboklab(37.47% 0.0714 -0.1465)
OKLCHoklch(37.47% 0.163 296)
XYZxyz(8.1833, 4.4881, 24.8562)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C218B #608B21
analogous
#212B8B #4C218B #81218B
triadic
#4C218B #8B4C21 #218B4C
tetradic
#4C218B #8B212B #608B21 #218B81
square
#4C218B #8B212B #608B21 #218B81
split-complementary
#4C218B #8B8121 #2B8B21
monochromatic
#160A28 #31155A #4C218B #672DBC #8751D6

Accessibility & contrast

On white

11.07
#4C218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C218B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C218B#FFFFFF#000000##FFFFFF
##4C218B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c218b;
/* rgb */ color: rgb(76, 33, 139);
/* oklch */ color: oklch(37.5% 0.163 296.0);
Tailwind
colors: {
  custom: {
    50: '#8561ae',
    500: '#4c218b',
    950: '#000000',
  },
}
SCSS
$custom: #4c218b;
$custom-light: #8561ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c218b",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 264.34,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37474,
    "c": 0.16294,
    "h": 296
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#4C218B
secondary
#8EB94F
accent
#E543A3
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4C218B

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

Preview Lab → · Contrast checker → · Palette generator →

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