#4C2B84#4C2B84

#4C2B84 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.142 H 296.0°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#4C2B84
RGBrgb(76, 43, 132)
HSLhsl(262, 51%, 34%)
HSVhsv(262, 67%, 52%)
CMYKcmyk(42.4%, 67.4%, 0%, 48.2%)
CIE-LABlab(26.53, 35.86, -44.65)
CIE-LCHlch(26.53, 57.27, 308.77°)
OKLaboklab(38.22% 0.0622 -0.1274)
OKLCHoklch(38.22% 0.142 296)
XYZxyz(8.0081, 4.9300, 22.3550)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2B84 #63842B
analogous
#2B3784 #4C2B84 #792B84
triadic
#4C2B84 #844C2B #2B844C
tetradic
#4C2B84 #842B37 #63842B #2B8479
square
#4C2B84 #842B37 #63842B #2B8479
split-complementary
#4C2B84 #84792B #37842B
monochromatic
#170D28 #311C56 #4C2B84 #673AB2 #875FCB

Accessibility & contrast

On white

10.57
#4C2B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C2B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2B84
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2B84#FFFFFF#000000##FFFFFF
##4C2B841.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#3E4053
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2b84;
/* rgb */ color: rgb(76, 43, 132);
/* oklch */ color: oklch(38.2% 0.142 296.0);
Tailwind
colors: {
  custom: {
    50: '#8366a8',
    500: '#4c2b84',
    950: '#000000',
  },
}
SCSS
$custom: #4c2b84;
$custom-light: #8366a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2b84",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 262.247,
    "s": 50.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38224,
    "c": 0.14181,
    "h": 296
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#4C2B84
secondary
#91B15A
accent
#DA4DA6
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2B84

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

Preview Lab → · Contrast checker → · Palette generator →

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