#4C217C#4C217C

#4C217C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.146 H 300.9°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4C217C
RGBrgb(76, 33, 124)
HSLhsl(268, 58%, 31%)
HSVhsv(268, 73%, 49%)
CMYKcmyk(38.7%, 73.4%, 0%, 51.4%)
CIE-LABlab(23.93, 39.06, -43.84)
CIE-LCHlch(23.93, 58.72, 311.70°)
OKLaboklab(36.16% 0.0747 -0.125)
OKLCHoklch(36.16% 0.146 300.9)
XYZxyz(7.1615, 4.0794, 19.4750)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C217C #517C21
analogous
#21237C #4C217C #79217C
triadic
#4C217C #7C4C21 #217C4C
tetradic
#4C217C #7C2123 #517C21 #217C79
square
#4C217C #7C2123 #517C21 #217C79
split-complementary
#4C217C #7C7921 #237C21
monochromatic
#11071B #2E144C #4C217C #6A2EAC #8849CF

Accessibility & contrast

On white

11.57
#4C217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C217C
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C217C#FFFFFF#000000##FFFFFF
##4C217C1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#41374C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c217c;
/* rgb */ color: rgb(76, 33, 124);
/* oklch */ color: oklch(36.2% 0.146 300.9);
Tailwind
colors: {
  custom: {
    50: '#8360a3',
    500: '#4c217c',
    950: '#000000',
  },
}
SCSS
$custom: #4c217c;
$custom-light: #8360a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c217c",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 268.352,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36159,
    "c": 0.1456,
    "h": 300.9
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#4C217C
secondary
#7FAF4A
accent
#E14798
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C217C

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

Preview Lab → · Contrast checker → · Palette generator →

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