#4C217D#4C217D

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

Color values

HEX#4C217D
RGBrgb(76, 33, 125)
HSLhsl(268, 58%, 31%)
HSVhsv(268, 74%, 49%)
CMYKcmyk(39.2%, 73.6%, 0%, 51%)
CIE-LABlab(24.01, 39.33, -44.34)
CIE-LCHlch(24.01, 59.27, 311.57°)
OKLaboklab(36.24% 0.0745 -0.1264)
OKLCHoklch(36.24% 0.147 300.5)
XYZxyz(7.2251, 4.1048, 19.8097)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C217D #527D21
analogous
#21247D #4C217D #7A217D
triadic
#4C217D #7D4C21 #217D4C
tetradic
#4C217D #7D2124 #527D21 #217D7A
square
#4C217D #7D2124 #527D21 #217D7A
split-complementary
#4C217D #7D7A21 #247D21
monochromatic
#11071C #2F144D #4C217D #692EAD #8849CF

Accessibility & contrast

On white

11.53
#4C217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C217D
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C217D#FFFFFF#000000##FFFFFF
##4C217D1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#41374C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c217d;
/* rgb */ color: rgb(76, 33, 125);
/* oklch */ color: oklch(36.2% 0.147 300.5);
Tailwind
colors: {
  custom: {
    50: '#8360a3',
    500: '#4c217d',
    950: '#000000',
  },
}
SCSS
$custom: #4c217d;
$custom-light: #8360a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c217d",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 268.043,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36244,
    "c": 0.14677,
    "h": 300.5
  },
  "luminance": 0.04105
}

Semantic roles & 50–950 ramp

primary
#4C217D
secondary
#80B04A
accent
#E14699
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C217D

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

Preview Lab → · Contrast checker → · Palette generator →

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