#4C2BA0#4C2BA0

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

Color values

HEX#4C2BA0
RGBrgb(76, 43, 160)
HSLhsl(257, 58%, 40%)
HSVhsv(257, 73%, 63%)
CMYKcmyk(52.5%, 73.1%, 0%, 37.3%)
CIE-LABlab(28.91, 43.95, -58.04)
CIE-LCHlch(28.91, 72.80, 307.13°)
OKLaboklab(40.66% 0.0573 -0.1667)
OKLCHoklch(40.66% 0.176 289)
XYZxyz(10.1877, 5.8019, 33.8340)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BA0 #7FA02B
analogous
#2B45A0 #4C2BA0 #862BA0
triadic
#4C2BA0 #A04C2B #2BA04C
tetradic
#4C2BA0 #A02B45 #7FA02B #2BA086
square
#4C2BA0 #A02B45 #7FA02B #2BA086
split-complementary
#4C2BA0 #A0862B #45A02B
monochromatic
#1E1140 #351E70 #4C2BA0 #653DCB #8C6ED8

Accessibility & contrast

On white

9.72
#4C2BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4C2BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BA0
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BA0#FFFFFF#000000##FFFFFF
##4C2BA01.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#2D4A63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4c2ba0;
/* rgb */ color: rgb(76, 43, 160);
/* oklch */ color: oklch(40.7% 0.176 289.0);
Tailwind
colors: {
  custom: {
    50: '#8768bd',
    500: '#4c2ba0',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ba0;
$custom-light: #8768bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ba0",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 160
  },
  "hsl": {
    "h": 256.923,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40657,
    "c": 0.17631,
    "h": 289
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#4C2BA0
secondary
#A6BF68
accent
#E147B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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