#4C2E84#4C2E84

#4C2E84 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.138 H 295.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#4C2E84
RGBrgb(76, 46, 132)
HSLhsl(261, 48%, 35%)
HSVhsv(261, 65%, 52%)
CMYKcmyk(42.4%, 65.2%, 0%, 48.2%)
CIE-LABlab(27.18, 34.12, -43.61)
CIE-LCHlch(27.18, 55.38, 308.04°)
OKLaboklab(38.69% 0.0587 -0.1244)
OKLCHoklch(38.69% 0.138 295.3)
XYZxyz(8.1212, 5.1563, 22.3927)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E84 #66842E
analogous
#2E3B84 #4C2E84 #772E84
triadic
#4C2E84 #844C2E #2E844C
tetradic
#4C2E84 #842E3B #66842E #2E8477
square
#4C2E84 #842E3B #66842E #2E8477
split-complementary
#4C2E84 #84772E #3B842E
monochromatic
#180E29 #321E57 #4C2E84 #663EB1 #8764C9

Accessibility & contrast

On white

10.34
#4C2E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4C2E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E84
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E84#FFFFFF#000000##FFFFFF
##4C2E841.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#3D4254
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c2e84;
/* rgb */ color: rgb(76, 46, 132);
/* oklch */ color: oklch(38.7% 0.138 295.3);
Tailwind
colors: {
  custom: {
    50: '#8368a8',
    500: '#4c2e84',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e84;
$custom-light: #8368a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e84",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 132
  },
  "hsl": {
    "h": 260.93,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38688,
    "c": 0.13753,
    "h": 295.3
  },
  "luminance": 0.05156
}

Semantic roles & 50–950 ramp

primary
#4C2E84
secondary
#93B05E
accent
#D850A8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2E84

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

Preview Lab → · Contrast checker → · Palette generator →

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