#4C2172#4C2172

#4C2172 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.134 H 304.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#4C2172
RGBrgb(76, 33, 114)
HSLhsl(272, 55%, 29%)
HSVhsv(272, 71%, 45%)
CMYKcmyk(33.3%, 71.1%, 0%, 55.3%)
CIE-LABlab(23.13, 36.43, -38.75)
CIE-LCHlch(23.13, 53.19, 313.23°)
OKLaboklab(35.34% 0.0763 -0.11)
OKLCHoklch(35.34% 0.134 304.7)
XYZxyz(6.5609, 3.8392, 16.3117)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2172 #477221
analogous
#242172 #4C2172 #722170
triadic
#4C2172 #724C21 #21724C
tetradic
#4C2172 #722421 #477221 #217072
square
#4C2172 #722421 #477221 #217072
split-complementary
#4C2172 #707221 #217224
monochromatic
#100718 #2C1343 #4C2172 #6C2FA1 #8B44C9

Accessibility & contrast

On white

11.88
#4C2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2172
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2172#FFFFFF#000000##FFFFFF
##4C21721.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#043770
Tritanopia (blue-blind)
#453346
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4c2172;
/* rgb */ color: rgb(76, 33, 114);
/* oklch */ color: oklch(35.3% 0.134 304.7);
Tailwind
colors: {
  custom: {
    50: '#82609b',
    500: '#4c2172',
    950: '#000000',
  },
}
SCSS
$custom: #4c2172;
$custom-light: #82609b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2172",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 271.852,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35337,
    "c": 0.13391,
    "h": 304.7
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#4C2172
secondary
#75A549
accent
#DE498F
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2172

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

Preview Lab → · Contrast checker → · Palette generator →

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