#4C2292#4C2292

#4C2292 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.2% C 0.170 H 293.8°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#4C2292
RGBrgb(76, 34, 146)
HSLhsl(263, 62%, 35%)
HSVhsv(263, 77%, 57%)
CMYKcmyk(47.9%, 76.7%, 0%, 42.7%)
CIE-LABlab(26.03, 44.53, -54.18)
CIE-LCHlch(26.03, 70.13, 309.41°)
OKLaboklab(38.23% 0.0686 -0.1554)
OKLCHoklch(38.23% 0.17 293.8)
XYZxyz(8.7394, 4.7556, 27.6460)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2292 #689222
analogous
#223092 #4C2292 #842292
triadic
#4C2292 #924C22 #22924C
tetradic
#4C2292 #922230 #689222 #229284
square
#4C2292 #922230 #689222 #229284
split-complementary
#4C2292 #928422 #309222
monochromatic
#180B2F #321660 #4C2292 #662EC4 #8757D8

Accessibility & contrast

On white

10.76
#4C2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4C2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2292
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2292#FFFFFF#000000##FFFFFF
##4C22921.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#374059
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2292;
/* rgb */ color: rgb(76, 34, 146);
/* oklch */ color: oklch(38.2% 0.170 293.8);
Tailwind
colors: {
  custom: {
    50: '#8562b3',
    500: '#4c2292',
    950: '#000000',
  },
}
SCSS
$custom: #4c2292;
$custom-light: #8562b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2292",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 262.5,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38234,
    "c": 0.16986,
    "h": 293.8
  },
  "luminance": 0.04756
}

Semantic roles & 50–950 ramp

primary
#4C2292
secondary
#95BC54
accent
#E543A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2292

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

Preview Lab → · Contrast checker → · Palette generator →

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