#4C2D7C#4C2D7C

#4C2D7C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.9% C 0.129 H 298.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#4C2D7C
RGBrgb(76, 45, 124)
HSLhsl(264, 47%, 33%)
HSVhsv(264, 64%, 49%)
CMYKcmyk(38.7%, 63.7%, 0%, 51.4%)
CIE-LABlab(26.36, 32.42, -39.91)
CIE-LCHlch(26.36, 51.42, 309.09°)
OKLaboklab(37.9% 0.0605 -0.1135)
OKLCHoklch(37.9% 0.129 298.1)
XYZxyz(7.5561, 4.8684, 19.6065)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D7C #5D7C2D
analogous
#2D357C #4C2D7C #732D7C
triadic
#4C2D7C #7C4C2D #2D7C4C
tetradic
#4C2D7C #7C2D35 #5D7C2D #2D7C73
square
#4C2D7C #7C2D35 #5D7C2D #2D7C73
split-complementary
#4C2D7C #7C732D #357C2D
monochromatic
#150C22 #301D4F #4C2D7C #683DA9 #875FC5

Accessibility & contrast

On white

10.64
#4C2D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#4C2D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D7C
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D7C#FFFFFF#000000##FFFFFF
##4C2D7C1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#0A3E7A
Tritanopia (blue-blind)
#413E50
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2d7c;
/* rgb */ color: rgb(76, 45, 124);
/* oklch */ color: oklch(37.9% 0.129 298.1);
Tailwind
colors: {
  custom: {
    50: '#8267a2',
    500: '#4c2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d7c;
$custom-light: #8267a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d7c",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 263.544,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37903,
    "c": 0.12861,
    "h": 298.1
  },
  "luminance": 0.04869
}

Semantic roles & 50–950 ramp

primary
#4C2D7C
secondary
#8BAB5A
accent
#D651A2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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