#4C2CA2#4C2CA2

#4C2CA2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.178 H 288.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4C2CA2
RGBrgb(76, 44, 162)
HSLhsl(256, 57%, 40%)
HSVhsv(256, 73%, 64%)
CMYKcmyk(53.1%, 72.8%, 0%, 36.5%)
CIE-LABlab(29.28, 44.00, -58.65)
CIE-LCHlch(29.28, 73.32, 306.88°)
OKLaboklab(40.97% 0.056 -0.1685)
OKLCHoklch(40.97% 0.178 288.4)
XYZxyz(10.4008, 5.9460, 34.7751)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CA2 #82A22C
analogous
#2C47A2 #4C2CA2 #872CA2
triadic
#4C2CA2 #A24C2C #2CA24C
tetradic
#4C2CA2 #A22C47 #82A22C #2CA287
square
#4C2CA2 #A22C47 #82A22C #2CA287
split-complementary
#4C2CA2 #A2872C #47A22C
monochromatic
#1F1242 #351F72 #4C2CA2 #6640CB #8C70D8

Accessibility & contrast

On white

9.59
#4C2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4C2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CA2
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CA2#FFFFFF#000000##FFFFFF
##4C2CA21.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0042A0
Tritanopia (blue-blind)
#2B4B64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2ca2;
/* rgb */ color: rgb(76, 44, 162);
/* oklch */ color: oklch(41.0% 0.178 288.4);
Tailwind
colors: {
  custom: {
    50: '#8768bf',
    500: '#4c2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ca2;
$custom-light: #8768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ca2",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 256.271,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.40974,
    "c": 0.17758,
    "h": 288.4
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#4C2CA2
secondary
#A8BF6A
accent
#E147B7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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