#4C2D7A#4C2D7A

#4C2D7A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.8% C 0.126 H 298.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#4C2D7A
RGBrgb(76, 45, 122)
HSLhsl(264, 46%, 33%)
HSVhsv(264, 63%, 48%)
CMYKcmyk(37.7%, 63.1%, 0%, 52.2%)
CIE-LABlab(26.21, 31.86, -38.88)
CIE-LCHlch(26.21, 50.26, 309.33°)
OKLaboklab(37.75% 0.0606 -0.1105)
OKLCHoklch(37.75% 0.126 298.8)
XYZxyz(7.4309, 4.8183, 18.9471)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D7A #5B7A2D
analogous
#2D347A #4C2D7A #732D7A
triadic
#4C2D7A #7A4C2D #2D7A4C
tetradic
#4C2D7A #7A2D34 #5B7A2D #2D7A73
square
#4C2D7A #7A2D34 #5B7A2D #2D7A73
split-complementary
#4C2D7A #7A732D #347A2D
monochromatic
#140C21 #301D4D #4C2D7A #683DA7 #875EC4

Accessibility & contrast

On white

10.69
#4C2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4C2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2D7A
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D7A#FFFFFF#000000##FFFFFF
##4C2D7A1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#0F3D78
Tritanopia (blue-blind)
#423E4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2d7a;
/* rgb */ color: rgb(76, 45, 122);
/* oklch */ color: oklch(37.8% 0.126 298.8);
Tailwind
colors: {
  custom: {
    50: '#8267a1',
    500: '#4c2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d7a;
$custom-light: #8267a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d7a",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 264.156,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3775,
    "c": 0.126,
    "h": 298.8
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#4C2D7A
secondary
#89AA59
accent
#D652A1
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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