#4C2CA6#4C2CA6

#4C2CA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.182 H 287.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#4C2CA6
RGBrgb(76, 44, 166)
HSLhsl(256, 58%, 41%)
HSVhsv(256, 73%, 65%)
CMYKcmyk(54.2%, 73.5%, 0%, 34.9%)
CIE-LABlab(29.64, 45.17, -60.47)
CIE-LCHlch(29.64, 75.48, 306.76°)
OKLaboklab(41.34% 0.0551 -0.1739)
OKLCHoklch(41.34% 0.182 287.6)
XYZxyz(10.7621, 6.0905, 36.6775)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CA6 #86A62C
analogous
#2C49A6 #4C2CA6 #892CA6
triadic
#4C2CA6 #A64C2C #2CA64C
tetradic
#4C2CA6 #A62C49 #86A62C #2CA689
square
#4C2CA6 #A62C49 #86A62C #2CA689
split-complementary
#4C2CA6 #A6892C #49A62C
monochromatic
#201245 #361F76 #4C2CA6 #6742CD #8E73DA

Accessibility & contrast

On white

9.47
#4C2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4C2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CA6
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CA6#FFFFFF#000000##FFFFFF
##4C2CA61.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#274D66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ca6;
/* rgb */ color: rgb(76, 44, 166);
/* oklch */ color: oklch(41.3% 0.182 287.6);
Tailwind
colors: {
  custom: {
    50: '#8868c1',
    500: '#4c2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ca6;
$custom-light: #8868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ca6",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 255.738,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41343,
    "c": 0.18238,
    "h": 287.6
  },
  "luminance": 0.06091
}

Semantic roles & 50–950 ramp

primary
#4C2CA6
secondary
#ABC16D
accent
#E146B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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