#4C2399#4C2399

#4C2399 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.177 H 291.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#4C2399
RGBrgb(76, 35, 153)
HSLhsl(261, 63%, 37%)
HSVhsv(261, 77%, 60%)
CMYKcmyk(50.3%, 77.1%, 0%, 40%)
CIE-LABlab(26.84, 45.98, -57.15)
CIE-LCHlch(26.84, 73.35, 308.82°)
OKLaboklab(39.01% 0.0659 -0.1641)
OKLCHoklch(39.01% 0.177 291.9)
XYZxyz(9.3297, 5.0381, 30.6117)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2399 #709923
analogous
#233599 #4C2399 #872399
triadic
#4C2399 #994C23 #23994C
tetradic
#4C2399 #992335 #709923 #239987
square
#4C2399 #992335 #709923 #239987
split-complementary
#4C2399 #998723 #359923
monochromatic
#1B0C35 #331867 #4C2399 #652ECB #885DDA

Accessibility & contrast

On white

10.46
#4C2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2399
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2399#FFFFFF#000000##FFFFFF
##4C23991.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#33445D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2399;
/* rgb */ color: rgb(76, 35, 153);
/* oklch */ color: oklch(39.0% 0.177 291.9);
Tailwind
colors: {
  custom: {
    50: '#8663b8',
    500: '#4c2399',
    950: '#000000',
  },
}
SCSS
$custom: #4c2399;
$custom-light: #8663b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2399",
  "rgb": {
    "r": 76,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 260.847,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39005,
    "c": 0.17681,
    "h": 291.9
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#4C2399
secondary
#9BBE59
accent
#E642AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2399

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

Preview Lab → · Contrast checker → · Palette generator →

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