#4C2BA1#4C2BA1

#4C2BA1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.178 H 288.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4C2BA1
RGBrgb(76, 43, 161)
HSLhsl(257, 58%, 40%)
HSVhsv(257, 73%, 63%)
CMYKcmyk(52.8%, 73.3%, 0%, 36.9%)
CIE-LABlab(29.00, 44.24, -58.50)
CIE-LCHlch(29.00, 73.34, 307.10°)
OKLaboklab(40.75% 0.0571 -0.1681)
OKLCHoklch(40.75% 0.178 288.8)
XYZxyz(10.2755, 5.8370, 34.2965)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BA1 #80A12B
analogous
#2B45A1 #4C2BA1 #872BA1
triadic
#4C2BA1 #A14C2B #2BA14C
tetradic
#4C2BA1 #A12B45 #80A12B #2BA187
square
#4C2BA1 #A12B45 #80A12B #2BA187
split-complementary
#4C2BA1 #A1872B #45A12B
monochromatic
#1E1140 #351E71 #4C2BA1 #653ECB #8C6ED8

Accessibility & contrast

On white

9.69
#4C2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4C2BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BA1
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BA1#FFFFFF#000000##FFFFFF
##4C2BA11.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#2C4B63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2ba1;
/* rgb */ color: rgb(76, 43, 161);
/* oklch */ color: oklch(40.7% 0.178 288.8);
Tailwind
colors: {
  custom: {
    50: '#8768be',
    500: '#4c2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ba1;
$custom-light: #8768be;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ba1",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 256.78,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.40749,
    "c": 0.17751,
    "h": 288.8
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

primary
#4C2BA1
secondary
#A7BF69
accent
#E147B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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