#4C2CB2#4C2CB2

#4C2CB2 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.197 H 285.4°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4C2CB2
RGBrgb(76, 44, 178)
HSLhsl(254, 60%, 44%)
HSVhsv(254, 75%, 70%)
CMYKcmyk(57.3%, 75.3%, 0%, 30.2%)
CIE-LABlab(30.76, 48.67, -65.82)
CIE-LCHlch(30.76, 81.86, 306.48°)
OKLaboklab(42.48% 0.0521 -0.1895)
OKLCHoklch(42.48% 0.197 285.4)
XYZxyz(11.9146, 6.5515, 42.7476)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CB2 #92B22C
analogous
#2C4FB2 #4C2CB2 #8F2CB2
triadic
#4C2CB2 #B24C2C #2CB24C
tetradic
#4C2CB2 #B22C4F #92B22C #2CB28F
square
#4C2CB2 #B22C4F #92B22C #2CB28F
split-complementary
#4C2CB2 #B28F2C #4FB22C
monochromatic
#221450 #372081 #4C2CB2 #6A49D2 #927ADE

Accessibility & contrast

On white

9.09
#4C2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4C2CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CB2
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CB2#FFFFFF#000000##FFFFFF
##4C2CB21.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#18526D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2cb2;
/* rgb */ color: rgb(76, 44, 178);
/* oklch */ color: oklch(42.5% 0.197 285.4);
Tailwind
colors: {
  custom: {
    50: '#8a69ca',
    500: '#4c2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2cb2;
$custom-light: #8a69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2cb2",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 254.328,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42478,
    "c": 0.19658,
    "h": 285.4
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#4C2CB2
secondary
#B3C673
accent
#E444BD
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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