#4C2175#4C2175

#4C2175 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.137 H 303.5°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#4C2175
RGBrgb(76, 33, 117)
HSLhsl(271, 56%, 29%)
HSVhsv(271, 72%, 46%)
CMYKcmyk(35%, 71.8%, 0%, 54.1%)
CIE-LABlab(23.37, 37.21, -40.30)
CIE-LCHlch(23.37, 54.85, 312.72°)
OKLaboklab(35.58% 0.0759 -0.1146)
OKLCHoklch(35.58% 0.137 303.5)
XYZxyz(6.7345, 3.9086, 17.2258)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2175 #4A7521
analogous
#222175 #4C2175 #752174
triadic
#4C2175 #754C21 #21754C
tetradic
#4C2175 #752221 #4A7521 #217475
square
#4C2175 #752221 #4A7521 #217475
split-complementary
#4C2175 #747521 #217522
monochromatic
#100718 #2D1445 #4C2175 #6B2EA5 #8A46CB

Accessibility & contrast

On white

11.79
#4C2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4C2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2175
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2175#FFFFFF#000000##FFFFFF
##4C21751.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#003873
Tritanopia (blue-blind)
#443448
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c2175;
/* rgb */ color: rgb(76, 33, 117);
/* oklch */ color: oklch(35.6% 0.137 303.5);
Tailwind
colors: {
  custom: {
    50: '#82609d',
    500: '#4c2175',
    950: '#000000',
  },
}
SCSS
$custom: #4c2175;
$custom-light: #82609d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2175",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 270.714,
    "s": 56,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35578,
    "c": 0.13743,
    "h": 303.5
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#4C2175
secondary
#78A84A
accent
#DF4992
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2175

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

Preview Lab → · Contrast checker → · Palette generator →

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