#4C2295#4C2295

#4C2295 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.173 H 293.0°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#4C2295
RGBrgb(76, 34, 149)
HSLhsl(262, 63%, 36%)
HSVhsv(262, 77%, 58%)
CMYKcmyk(49%, 77.2%, 0%, 41.6%)
CIE-LABlab(26.30, 45.35, -55.58)
CIE-LCHlch(26.30, 71.73, 309.21°)
OKLaboklab(38.51% 0.0678 -0.1595)
OKLCHoklch(38.51% 0.173 293)
XYZxyz(8.9758, 4.8502, 28.8912)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2295 #6B9522
analogous
#223195 #4C2295 #852295
triadic
#4C2295 #954C22 #22954C
tetradic
#4C2295 #952231 #6B9522 #229585
square
#4C2295 #952231 #6B9522 #229585
split-complementary
#4C2295 #958522 #319522
monochromatic
#190B31 #331763 #4C2295 #652DC7 #8758D9

Accessibility & contrast

On white

10.66
#4C2295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C2295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2295
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2295#FFFFFF#000000##FFFFFF
##4C22951.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#003C93
Tritanopia (blue-blind)
#35415A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2295;
/* rgb */ color: rgb(76, 34, 149);
/* oklch */ color: oklch(38.5% 0.173 293.0);
Tailwind
colors: {
  custom: {
    50: '#8662b5',
    500: '#4c2295',
    950: '#000000',
  },
}
SCSS
$custom: #4c2295;
$custom-light: #8662b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2295",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 261.913,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.17329,
    "h": 293
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#4C2295
secondary
#97BD56
accent
#E642AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2295

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

Preview Lab → · Contrast checker → · Palette generator →

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