#4C217B#4C217B

#4C217B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.144 H 301.2°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#4C217B
RGBrgb(76, 33, 123)
HSLhsl(269, 58%, 31%)
HSVhsv(269, 73%, 48%)
CMYKcmyk(38.2%, 73.2%, 0%, 51.8%)
CIE-LABlab(23.85, 38.80, -43.34)
CIE-LCHlch(23.85, 58.17, 311.84°)
OKLaboklab(36.08% 0.0749 -0.1235)
OKLCHoklch(36.08% 0.144 301.2)
XYZxyz(7.0986, 4.0542, 19.1436)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C217B #507B21
analogous
#21237B #4C217B #79217B
triadic
#4C217B #7B4C21 #217B4C
tetradic
#4C217B #7B2123 #507B21 #217B79
square
#4C217B #7B2123 #507B21 #217B79
split-complementary
#4C217B #7B7921 #237B21
monochromatic
#10071A #2E144B #4C217B #6A2EAB #8848CE

Accessibility & contrast

On white

11.60
#4C217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C217B
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C217B#FFFFFF#000000##FFFFFF
##4C217B1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#42374B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c217b;
/* rgb */ color: rgb(76, 33, 123);
/* oklch */ color: oklch(36.1% 0.144 301.2);
Tailwind
colors: {
  custom: {
    50: '#8360a2',
    500: '#4c217b',
    950: '#000000',
  },
}
SCSS
$custom: #4c217b;
$custom-light: #8360a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c217b",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 268.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36075,
    "c": 0.14444,
    "h": 301.2
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#4C217B
secondary
#7EAE4A
accent
#E14797
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C217B

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

Preview Lab → · Contrast checker → · Palette generator →

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