#4C2BA5#4C2BA5

#4C2BA5 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.182 H 287.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#4C2BA5
RGBrgb(76, 43, 165)
HSLhsl(256, 59%, 41%)
HSVhsv(256, 74%, 65%)
CMYKcmyk(53.9%, 73.9%, 0%, 35.3%)
CIE-LABlab(29.36, 45.40, -60.32)
CIE-LCHlch(29.36, 75.50, 306.97°)
OKLaboklab(41.12% 0.0561 -0.1734)
OKLCHoklch(41.12% 0.182 287.9)
XYZxyz(10.6339, 5.9803, 36.1840)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BA5 #84A52B
analogous
#2B47A5 #4C2BA5 #892BA5
triadic
#4C2BA5 #A54C2B #2BA54C
tetradic
#4C2BA5 #A52B47 #84A52B #2BA589
square
#4C2BA5 #A52B47 #84A52B #2BA589
split-complementary
#4C2BA5 #A5892B #47A52B
monochromatic
#1F1244 #361E74 #4C2BA5 #6640CD #8D71DA

Accessibility & contrast

On white

9.56
#4C2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4C2BA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BA5
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BA5#FFFFFF#000000##FFFFFF
##4C2BA51.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#0042A3
Tritanopia (blue-blind)
#284C65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2ba5;
/* rgb */ color: rgb(76, 43, 165);
/* oklch */ color: oklch(41.1% 0.182 287.9);
Tailwind
colors: {
  custom: {
    50: '#8868c1',
    500: '#4c2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #4c2ba5;
$custom-light: #8868c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2ba5",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 256.23,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41119,
    "c": 0.18229,
    "h": 287.9
  },
  "luminance": 0.05981
}

Semantic roles & 50–950 ramp

primary
#4C2BA5
secondary
#AAC16B
accent
#E246B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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