#4C217F#4C217F

#4C217F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.4% C 0.149 H 299.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#4C217F
RGBrgb(76, 33, 127)
HSLhsl(267, 59%, 31%)
HSVhsv(267, 74%, 50%)
CMYKcmyk(40.2%, 74%, 0%, 50.2%)
CIE-LABlab(24.18, 39.86, -45.33)
CIE-LCHlch(24.18, 60.36, 311.33°)
OKLaboklab(36.41% 0.0741 -0.1294)
OKLCHoklch(36.41% 0.149 299.8)
XYZxyz(7.3542, 4.1564, 20.4894)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C217F #547F21
analogous
#21257F #4C217F #7B217F
triadic
#4C217F #7F4C21 #217F4C
tetradic
#4C217F #7F2125 #547F21 #217F7B
square
#4C217F #7F2125 #547F21 #217F7B
split-complementary
#4C217F #7F7B21 #257F21
monochromatic
#12081E #2F144E #4C217F #692EB0 #884AD0

Accessibility & contrast

On white

11.47
#4C217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C217F
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C217F#FFFFFF#000000##FFFFFF
##4C217F1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#40384E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c217f;
/* rgb */ color: rgb(76, 33, 127);
/* oklch */ color: oklch(36.4% 0.149 299.8);
Tailwind
colors: {
  custom: {
    50: '#8360a5',
    500: '#4c217f',
    950: '#000000',
  },
}
SCSS
$custom: #4c217f;
$custom-light: #8360a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c217f",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 267.447,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36414,
    "c": 0.14909,
    "h": 299.8
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#4C217F
secondary
#82B24A
accent
#E2469B
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C217F

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

Preview Lab → · Contrast checker → · Palette generator →

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