#4C2272#4C2272

#4C2272 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.132 H 304.5°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#4C2272
RGBrgb(76, 34, 114)
HSLhsl(272, 54%, 29%)
HSVhsv(272, 70%, 45%)
CMYKcmyk(33.3%, 70.2%, 0%, 55.3%)
CIE-LABlab(23.32, 35.90, -38.44)
CIE-LCHlch(23.32, 52.60, 313.04°)
OKLaboklab(35.47% 0.0751 -0.1091)
OKLCHoklch(35.47% 0.132 304.5)
XYZxyz(6.5891, 3.8955, 16.3211)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2272 #487222
analogous
#242272 #4C2272 #722270
triadic
#4C2272 #724C22 #22724C
tetradic
#4C2272 #722422 #487222 #227072
square
#4C2272 #722422 #487222 #227072
split-complementary
#4C2272 #707222 #227224
monochromatic
#100718 #2D1443 #4C2272 #6B30A1 #8A46C8

Accessibility & contrast

On white

11.80
#4C2272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2272
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2272#FFFFFF#000000##FFFFFF
##4C22721.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#063870
Tritanopia (blue-blind)
#453447
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c2272;
/* rgb */ color: rgb(76, 34, 114);
/* oklch */ color: oklch(35.5% 0.132 304.5);
Tailwind
colors: {
  custom: {
    50: '#82609b',
    500: '#4c2272',
    950: '#000000',
  },
}
SCSS
$custom: #4c2272;
$custom-light: #82609b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2272",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 271.5,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35473,
    "c": 0.13249,
    "h": 304.5
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#4C2272
secondary
#76A54B
accent
#DD4A90
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2272

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

Preview Lab → · Contrast checker → · Palette generator →

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