#4C2AB1#4C2AB1

#4C2AB1 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.197 H 285.8°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#4C2AB1
RGBrgb(76, 42, 177)
HSLhsl(255, 62%, 43%)
HSVhsv(255, 76%, 69%)
CMYKcmyk(57.1%, 76.3%, 0%, 30.6%)
CIE-LABlab(30.32, 49.38, -65.96)
CIE-LCHlch(30.32, 82.39, 306.82°)
OKLaboklab(42.14% 0.0539 -0.1899)
OKLCHoklch(42.14% 0.197 285.8)
XYZxyz(11.7419, 6.3661, 42.1965)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AB1 #8FB12A
analogous
#2A4BB1 #4C2AB1 #8F2AB1
triadic
#4C2AB1 #B14C2A #2AB14C
tetradic
#4C2AB1 #B12A4B #8FB12A #2AB18F
square
#4C2AB1 #B12A4B #8FB12A #2AB18F
split-complementary
#4C2AB1 #B18F2A #4BB12A
monochromatic
#22134E #371E80 #4C2AB1 #6945D3 #9177DF

Accessibility & contrast

On white

9.24
#4C2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4C2AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AB1
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AB1#FFFFFF#000000##FFFFFF
##4C2AB11.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#1A506C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2ab1;
/* rgb */ color: rgb(76, 42, 177);
/* oklch */ color: oklch(42.1% 0.197 285.8);
Tailwind
colors: {
  custom: {
    50: '#8a68c9',
    500: '#4c2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ab1;
$custom-light: #8a68c9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ab1",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 255.111,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42136,
    "c": 0.19741,
    "h": 285.8
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#4C2AB1
secondary
#B1C670
accent
#E543BC
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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