#4C2D84#4C2D84

#4C2D84 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.5% C 0.139 H 295.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4C2D84
RGBrgb(76, 45, 132)
HSLhsl(261, 49%, 35%)
HSVhsv(261, 66%, 52%)
CMYKcmyk(42.4%, 65.9%, 0%, 48.2%)
CIE-LABlab(26.96, 34.71, -43.96)
CIE-LCHlch(26.96, 56.01, 308.29°)
OKLaboklab(38.53% 0.0599 -0.1254)
OKLCHoklch(38.53% 0.139 295.5)
XYZxyz(8.0826, 5.0790, 22.3798)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D84 #65842D
analogous
#2D3A84 #4C2D84 #782D84
triadic
#4C2D84 #844C2D #2D844C
tetradic
#4C2D84 #842D3A #65842D #2D8478
square
#4C2D84 #842D3A #65842D #2D8478
split-complementary
#4C2D84 #84782D #3A842D
monochromatic
#170E29 #321D56 #4C2D84 #663DB2 #8762C9

Accessibility & contrast

On white

10.42
#4C2D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C2D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D84
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D84#FFFFFF#000000##FFFFFF
##4C2D841.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004087
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#3E4154
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2d84;
/* rgb */ color: rgb(76, 45, 132);
/* oklch */ color: oklch(38.5% 0.139 295.5);
Tailwind
colors: {
  custom: {
    50: '#8368a8',
    500: '#4c2d84',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d84;
$custom-light: #8368a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d84",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 261.379,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38531,
    "c": 0.13897,
    "h": 295.5
  },
  "luminance": 0.05079
}

Semantic roles & 50–950 ramp

primary
#4C2D84
secondary
#92B05D
accent
#D94FA8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2D84

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

Preview Lab → · Contrast checker → · Palette generator →

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