#4C2CB5#4C2CB5

#4C2CB5 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 42.8% C 0.200 H 284.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4C2CB5
RGBrgb(76, 44, 181)
HSLhsl(254, 61%, 44%)
HSVhsv(254, 76%, 71%)
CMYKcmyk(58%, 75.7%, 0%, 29%)
CIE-LABlab(31.05, 49.54, -67.13)
CIE-LCHlch(31.05, 83.43, 306.43°)
OKLaboklab(42.77% 0.0514 -0.1934)
OKLCHoklch(42.77% 0.2 284.9)
XYZxyz(12.2191, 6.6733, 44.3513)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CB5 #95B52C
analogous
#2C50B5 #4C2CB5 #912CB5
triadic
#4C2CB5 #B54C2C #2CB54C
tetradic
#4C2CB5 #B52C50 #95B52C #2CB591
square
#4C2CB5 #B52C50 #95B52C #2CB591
split-complementary
#4C2CB5 #B5912C #50B52C
monochromatic
#231453 #372084 #4C2CB5 #6B4BD3 #937CDF

Accessibility & contrast

On white

8.99
#4C2CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4C2CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CB5
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CB5#FFFFFF#000000##FFFFFF
##4C2CB51.008.992.338.99
#FFFFFF8.991.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#12536F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2cb5;
/* rgb */ color: rgb(76, 44, 181);
/* oklch */ color: oklch(42.8% 0.200 284.9);
Tailwind
colors: {
  custom: {
    50: '#8a69cc',
    500: '#4c2cb5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2cb5;
$custom-light: #8a69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2cb5",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 254.015,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42767,
    "c": 0.20009,
    "h": 284.9
  },
  "luminance": 0.06674
}

Semantic roles & 50–950 ramp

primary
#4C2CB5
secondary
#B4C875
accent
#E444BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C2CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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