#4C2ABA#4C2ABA

#4C2ABA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.208 H 284.3°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#4C2ABA
RGBrgb(76, 42, 186)
HSLhsl(254, 63%, 45%)
HSVhsv(254, 77%, 73%)
CMYKcmyk(59.1%, 77.4%, 0%, 27.1%)
CIE-LABlab(31.20, 51.96, -69.85)
CIE-LCHlch(31.20, 87.06, 306.64°)
OKLaboklab(43.02% 0.0514 -0.2013)
OKLCHoklch(43.02% 0.208 284.3)
XYZxyz(12.6687, 6.7368, 47.0776)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2ABA #98BA2A
analogous
#2A50BA #4C2ABA #942ABA
triadic
#4C2ABA #BA4C2A #2ABA4C
tetradic
#4C2ABA #BA2A50 #98BA2A #2ABA94
square
#4C2ABA #BA2A50 #98BA2A #2ABA94
split-complementary
#4C2ABA #BA942A #50BA2A
monochromatic
#231356 #381F88 #4C2ABA #6C4BD6 #957DE2

Accessibility & contrast

On white

8.95
#4C2ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4C2ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2ABA
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2ABA#FFFFFF#000000##FFFFFF
##4C2ABA1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#045471
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4c2aba;
/* rgb */ color: rgb(76, 42, 186);
/* oklch */ color: oklch(43.0% 0.208 284.3);
Tailwind
colors: {
  custom: {
    50: '#8b68d0',
    500: '#4c2aba',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aba;
$custom-light: #8b68d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aba",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 254.167,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43019,
    "c": 0.20776,
    "h": 284.3
  },
  "luminance": 0.06738
}

Semantic roles & 50–950 ramp

primary
#4C2ABA
secondary
#B6CA76
accent
#E642BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4C2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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