#4C2296#4C2296

#4C2296 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.174 H 292.8°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4C2296
RGBrgb(76, 34, 150)
HSLhsl(262, 63%, 36%)
HSVhsv(262, 77%, 59%)
CMYKcmyk(49.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(26.40, 45.62, -56.04)
CIE-LCHlch(26.40, 72.27, 309.15°)
OKLaboklab(38.61% 0.0675 -0.1608)
OKLCHoklch(38.61% 0.174 292.8)
XYZxyz(9.0560, 4.8823, 29.3135)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2296 #6C9622
analogous
#223296 #4C2296 #862296
triadic
#4C2296 #964C22 #22964C
tetradic
#4C2296 #962232 #6C9622 #229686
square
#4C2296 #962232 #6C9622 #229686
split-complementary
#4C2296 #968622 #329622
monochromatic
#190B32 #331764 #4C2296 #652DC8 #8759D9

Accessibility & contrast

On white

10.62
#4C2296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C2296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2296
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2296#FFFFFF#000000##FFFFFF
##4C22961.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004099
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#35425B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2296;
/* rgb */ color: rgb(76, 34, 150);
/* oklch */ color: oklch(38.6% 0.174 292.8);
Tailwind
colors: {
  custom: {
    50: '#8662b6',
    500: '#4c2296',
    950: '#000000',
  },
}
SCSS
$custom: #4c2296;
$custom-light: #8662b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2296",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 261.724,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.38607,
    "c": 0.17443,
    "h": 292.8
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#4C2296
secondary
#98BE56
accent
#E642AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2296

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

Preview Lab → · Contrast checker → · Palette generator →

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