#4C217A#4C217A

#4C217A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.143 H 301.6°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4C217A
RGBrgb(76, 33, 122)
HSLhsl(269, 57%, 30%)
HSVhsv(269, 73%, 48%)
CMYKcmyk(37.7%, 73%, 0%, 52.2%)
CIE-LABlab(23.77, 38.53, -42.83)
CIE-LCHlch(23.77, 57.61, 311.97°)
OKLaboklab(35.99% 0.0751 -0.122)
OKLCHoklch(35.99% 0.143 301.6)
XYZxyz(7.0364, 4.0293, 18.8156)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C217A #4F7A21
analogous
#21227A #4C217A #78217A
triadic
#4C217A #7A4C21 #217A4C
tetradic
#4C217A #7A2122 #4F7A21 #217A78
square
#4C217A #7A2122 #4F7A21 #217A78
split-complementary
#4C217A #7A7821 #227A21
monochromatic
#10071A #2E144A #4C217A #6A2EAA #8848CD

Accessibility & contrast

On white

11.63
#4C217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4C217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C217A
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C217A#FFFFFF#000000##FFFFFF
##4C217A1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#42364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c217a;
/* rgb */ color: rgb(76, 33, 122);
/* oklch */ color: oklch(36.0% 0.143 301.6);
Tailwind
colors: {
  custom: {
    50: '#8260a1',
    500: '#4c217a',
    950: '#000000',
  },
}
SCSS
$custom: #4c217a;
$custom-light: #8260a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c217a",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 268.989,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35991,
    "c": 0.14327,
    "h": 301.6
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#4C217A
secondary
#7DAD4A
accent
#E14796
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C217A

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

Preview Lab → · Contrast checker → · Palette generator →

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