#4C2D79#4C2D79

#4C2D79 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.7% C 0.125 H 299.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#4C2D79
RGBrgb(76, 45, 121)
HSLhsl(264, 46%, 33%)
HSVhsv(264, 63%, 47%)
CMYKcmyk(37.2%, 62.8%, 0%, 52.5%)
CIE-LABlab(26.14, 31.57, -38.36)
CIE-LCHlch(26.14, 49.69, 309.45°)
OKLaboklab(37.67% 0.0607 -0.1089)
OKLCHoklch(37.67% 0.125 299.1)
XYZxyz(7.3692, 4.7937, 18.6225)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2D79 #5A792D
analogous
#2D3479 #4C2D79 #722D79
triadic
#4C2D79 #794C2D #2D794C
tetradic
#4C2D79 #792D34 #5A792D #2D7972
square
#4C2D79 #792D34 #5A792D #2D7972
split-complementary
#4C2D79 #79722D #34792D
monochromatic
#140C20 #301C4C #4C2D79 #683EA6 #875DC3

Accessibility & contrast

On white

10.72
#4C2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2D79
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2D79#FFFFFF#000000##FFFFFF
##4C2D791.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#113D77
Tritanopia (blue-blind)
#423D4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2d79;
/* rgb */ color: rgb(76, 45, 121);
/* oklch */ color: oklch(37.7% 0.125 299.1);
Tailwind
colors: {
  custom: {
    50: '#8167a0',
    500: '#4c2d79',
    950: '#000000',
  },
}
SCSS
$custom: #4c2d79;
$custom-light: #8167a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2d79",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 264.474,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37675,
    "c": 0.12469,
    "h": 299.1
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#4C2D79
secondary
#88A958
accent
#D552A0
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4C2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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