#4C2CA7#4C2CA7

#4C2CA7 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.184 H 287.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#4C2CA7
RGBrgb(76, 44, 167)
HSLhsl(256, 58%, 41%)
HSVhsv(256, 74%, 65%)
CMYKcmyk(54.5%, 73.7%, 0%, 34.5%)
CIE-LABlab(29.73, 45.46, -60.92)
CIE-LCHlch(29.73, 76.02, 306.73°)
OKLaboklab(41.44% 0.0548 -0.1752)
OKLCHoklch(41.44% 0.184 287.4)
XYZxyz(10.8542, 6.1273, 37.1625)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CA7 #87A72C
analogous
#2C4AA7 #4C2CA7 #8A2CA7
triadic
#4C2CA7 #A74C2C #2CA74C
tetradic
#4C2CA7 #A72C4A #87A72C #2CA78A
square
#4C2CA7 #A72C4A #87A72C #2CA78A
split-complementary
#4C2CA7 #A78A2C #4AA72C
monochromatic
#201246 #361F77 #4C2CA7 #6743CD #8E73DA

Accessibility & contrast

On white

9.44
#4C2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4C2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CA7
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CA7#FFFFFF#000000##FFFFFF
##4C2CA71.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#264D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ca7;
/* rgb */ color: rgb(76, 44, 167);
/* oklch */ color: oklch(41.4% 0.184 287.4);
Tailwind
colors: {
  custom: {
    50: '#8868c2',
    500: '#4c2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ca7;
$custom-light: #8868c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ca7",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 255.61,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41436,
    "c": 0.18358,
    "h": 287.4
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#4C2CA7
secondary
#ACC26D
accent
#E246B9
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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