#4C2BAC#4C2BAC

#4C2BAC is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.191 H 286.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4C2BAC
RGBrgb(76, 43, 172)
HSLhsl(255, 60%, 42%)
HSVhsv(255, 75%, 67%)
CMYKcmyk(55.8%, 75%, 0%, 32.5%)
CIE-LABlab(30.02, 47.43, -63.46)
CIE-LCHlch(30.02, 79.23, 306.77°)
OKLaboklab(41.78% 0.0544 -0.1826)
OKLCHoklch(41.78% 0.191 286.6)
XYZxyz(11.2885, 6.2422, 39.6318)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BAC #8BAC2B
analogous
#2B4AAC #4C2BAC #8D2BAC
triadic
#4C2BAC #AC4C2B #2BAC4C
tetradic
#4C2BAC #AC2B4A #8BAC2B #2BAC8D
square
#4C2BAC #AC2B4A #8BAC2B #2BAC8D
split-complementary
#4C2BAC #AC8D2B #4AAC2B
monochromatic
#21134A #361F7B #4C2BAC #6844D0 #8F75DC

Accessibility & contrast

On white

9.34
#4C2BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C2BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2BAC
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BAC#FFFFFF#000000##FFFFFF
##4C2BAC1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#214F69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2bac;
/* rgb */ color: rgb(76, 43, 172);
/* oklch */ color: oklch(41.8% 0.191 286.6);
Tailwind
colors: {
  custom: {
    50: '#8968c6',
    500: '#4c2bac',
    950: '#000000',
  },
}
SCSS
$custom: #4c2bac;
$custom-light: #8968c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2bac",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 255.349,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41779,
    "c": 0.19057,
    "h": 286.6
  },
  "luminance": 0.06243
}

Semantic roles & 50–950 ramp

primary
#4C2BAC
secondary
#AEC46F
accent
#E345BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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