#4C217E#4C217E

#4C217E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.148 H 300.2°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#4C217E
RGBrgb(76, 33, 126)
HSLhsl(268, 58%, 31%)
HSVhsv(268, 74%, 49%)
CMYKcmyk(39.7%, 73.8%, 0%, 50.6%)
CIE-LABlab(24.10, 39.59, -44.83)
CIE-LCHlch(24.10, 59.81, 311.45°)
OKLaboklab(36.33% 0.0743 -0.1279)
OKLCHoklch(36.33% 0.148 300.2)
XYZxyz(7.2893, 4.1305, 20.1479)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C217E #537E21
analogous
#21247E #4C217E #7A217E
triadic
#4C217E #7E4C21 #217E4C
tetradic
#4C217E #7E2124 #537E21 #217E7A
square
#4C217E #7E2124 #537E21 #217E7A
split-complementary
#4C217E #7E7A21 #247E21
monochromatic
#11081D #2F144E #4C217E #692EAE #884AD0

Accessibility & contrast

On white

11.50
#4C217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4C217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C217E
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C217E#FFFFFF#000000##FFFFFF
##4C217E1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#41384D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c217e;
/* rgb */ color: rgb(76, 33, 126);
/* oklch */ color: oklch(36.3% 0.148 300.2);
Tailwind
colors: {
  custom: {
    50: '#8360a4',
    500: '#4c217e',
    950: '#000000',
  },
}
SCSS
$custom: #4c217e;
$custom-light: #8360a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c217e",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 267.742,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36329,
    "c": 0.14793,
    "h": 300.2
  },
  "luminance": 0.04131
}

Semantic roles & 50–950 ramp

primary
#4C217E
secondary
#81B14A
accent
#E2469A
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C217E

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

Preview Lab → · Contrast checker → · Palette generator →

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