#4C2E79#4C2E79

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

Color values

HEX#4C2E79
RGBrgb(76, 46, 121)
HSLhsl(264, 45%, 33%)
HSVhsv(264, 62%, 47%)
CMYKcmyk(37.2%, 62%, 0%, 52.5%)
CIE-LABlab(26.36, 30.97, -38.00)
CIE-LCHlch(26.36, 49.03, 309.18°)
OKLaboklab(37.84% 0.0593 -0.1079)
OKLCHoklch(37.84% 0.123 298.8)
XYZxyz(7.4078, 4.8709, 18.6353)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E79 #5B792E
analogous
#2E3579 #4C2E79 #712E79
triadic
#4C2E79 #794C2E #2E794C
tetradic
#4C2E79 #792E35 #5B792E #2E7971
square
#4C2E79 #792E35 #5B792E #2E7971
split-complementary
#4C2E79 #79712E #35792E
monochromatic
#140C20 #301D4D #4C2E79 #683FA5 #875FC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C2E79#FFFFFF#000000##FFFFFF
##4C2E791.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)
#023E7B
Deuteranopia (green-blind)
#133E77
Tritanopia (blue-blind)
#423E4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2e79;
/* rgb */ color: rgb(76, 46, 121);
/* oklch */ color: oklch(37.8% 0.123 298.8);
Tailwind
colors: {
  custom: {
    50: '#8168a0',
    500: '#4c2e79',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e79;
$custom-light: #8168a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e79",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 264,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37839,
    "c": 0.12311,
    "h": 298.8
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#4C2E79
secondary
#89A95A
accent
#D553A1
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4C2E79

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

Preview Lab → · Contrast checker → · Palette generator →

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