#4C2CA8#4C2CA8

#4C2CA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.185 H 287.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2CA8
RGBrgb(76, 44, 168)
HSLhsl(255, 58%, 42%)
HSVhsv(255, 74%, 66%)
CMYKcmyk(54.8%, 73.8%, 0%, 34.1%)
CIE-LABlab(29.82, 45.76, -61.37)
CIE-LCHlch(29.82, 76.55, 306.71°)
OKLaboklab(41.53% 0.0546 -0.1765)
OKLCHoklch(41.53% 0.185 287.2)
XYZxyz(10.9470, 6.1644, 37.6512)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CA8 #88A82C
analogous
#2C4AA8 #4C2CA8 #8A2CA8
triadic
#4C2CA8 #A84C2C #2CA84C
tetradic
#4C2CA8 #A82C4A #88A82C #2CA88A
square
#4C2CA8 #A82C4A #88A82C #2CA88A
split-complementary
#4C2CA8 #A88A2C #4AA82C
monochromatic
#201347 #361F78 #4C2CA8 #6743CE #8E74DB

Accessibility & contrast

On white

9.40
#4C2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2CA8
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CA8#FFFFFF#000000##FFFFFF
##4C2CA81.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#254E67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2ca8;
/* rgb */ color: rgb(76, 44, 168);
/* oklch */ color: oklch(41.5% 0.185 287.2);
Tailwind
colors: {
  custom: {
    50: '#8868c3',
    500: '#4c2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ca8;
$custom-light: #8868c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ca8",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 255.484,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41529,
    "c": 0.18477,
    "h": 287.2
  },
  "luminance": 0.06165
}

Semantic roles & 50–950 ramp

primary
#4C2CA8
secondary
#ACC26E
accent
#E246BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4C2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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