#4C2BA2#4C2BA2

#4C2BA2 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.179 H 288.5°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4C2BA2
RGBrgb(76, 43, 162)
HSLhsl(257, 58%, 40%)
HSVhsv(257, 73%, 64%)
CMYKcmyk(53.1%, 73.5%, 0%, 36.5%)
CIE-LABlab(29.09, 44.53, -58.96)
CIE-LCHlch(29.09, 73.88, 307.06°)
OKLaboklab(40.84% 0.0568 -0.1694)
OKLCHoklch(40.84% 0.179 288.5)
XYZxyz(10.3640, 5.8724, 34.7628)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BA2 #81A22B
analogous
#2B45A2 #4C2BA2 #882BA2
triadic
#4C2BA2 #A24C2B #2BA24C
tetradic
#4C2BA2 #A22B45 #81A22B #2BA288
square
#4C2BA2 #A22B45 #81A22B #2BA288
split-complementary
#4C2BA2 #A2882B #45A22B
monochromatic
#1F1141 #351E72 #4C2BA2 #663ECC #8C6FD9

Accessibility & contrast

On white

9.66
#4C2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2BA2
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BA2#FFFFFF#000000##FFFFFF
##4C2BA21.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A5
Deuteranopia (green-blind)
#0041A0
Tritanopia (blue-blind)
#2B4B64
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2ba2;
/* rgb */ color: rgb(76, 43, 162);
/* oklch */ color: oklch(40.8% 0.179 288.5);
Tailwind
colors: {
  custom: {
    50: '#8768bf',
    500: '#4c2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ba2;
$custom-light: #8768bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ba2",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 256.639,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40841,
    "c": 0.17871,
    "h": 288.5
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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