#4C2173#4C2173

#4C2173 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.135 H 304.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4C2173
RGBrgb(76, 33, 115)
HSLhsl(271, 55%, 29%)
HSVhsv(271, 71%, 45%)
CMYKcmyk(33.9%, 71.3%, 0%, 54.9%)
CIE-LABlab(23.21, 36.69, -39.27)
CIE-LCHlch(23.21, 53.74, 313.06°)
OKLaboklab(35.42% 0.0762 -0.1115)
OKLCHoklch(35.42% 0.135 304.3)
XYZxyz(6.6182, 3.8620, 16.6131)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2173 #487321
analogous
#232173 #4C2173 #732171
triadic
#4C2173 #734C21 #21734C
tetradic
#4C2173 #732321 #487321 #217173
square
#4C2173 #732321 #487321 #217173
split-complementary
#4C2173 #717321 #217323
monochromatic
#100718 #2D1343 #4C2173 #6B2FA3 #8A45CA

Accessibility & contrast

On white

11.85
#4C2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4C2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2173
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2173#FFFFFF#000000##FFFFFF
##4C21731.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003675
Deuteranopia (green-blind)
#023771
Tritanopia (blue-blind)
#453447
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c2173;
/* rgb */ color: rgb(76, 33, 115);
/* oklch */ color: oklch(35.4% 0.135 304.3);
Tailwind
colors: {
  custom: {
    50: '#82609c',
    500: '#4c2173',
    950: '#000000',
  },
}
SCSS
$custom: #4c2173;
$custom-light: #82609c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2173",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 271.463,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35417,
    "c": 0.13509,
    "h": 304.3
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#4C2173
secondary
#76A649
accent
#DF4990
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2173

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

Preview Lab → · Contrast checker → · Palette generator →

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