#4C2E52#4C2E52

#4C2E52 is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.3% C 0.071 H 320.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#4C2E52
RGBrgb(76, 46, 82)
HSLhsl(290, 28%, 25%)
HSVhsv(290, 44%, 32%)
CMYKcmyk(7.3%, 43.9%, 0%, 67.8%)
CIE-LABlab(24.00, 20.75, -16.46)
CIE-LCHlch(24.00, 26.49, 321.58°)
OKLaboklab(35.32% 0.0553 -0.0452)
OKLCHoklch(35.32% 0.071 320.8)
XYZxyz(5.4803, 4.0999, 8.4837)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2E52 #34522E
analogous
#3A2E52 #4C2E52 #522E46
triadic
#4C2E52 #524C2E #2E524C
tetradic
#4C2E52 #523A2E #34522E #2E4652
square
#4C2E52 #523A2E #34522E #2E4652
split-complementary
#4C2E52 #46522E #2E523A
monochromatic
#120B14 #28182B #4C2E52 #704479 #955AA0

Accessibility & contrast

On white

11.54
#4C2E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4C2E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2E52
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2E52#FFFFFF#000000##FFFFFF
##4C2E521.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293753
Deuteranopia (green-blind)
#313A51
Tritanopia (blue-blind)
#4D323C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4c2e52;
/* rgb */ color: rgb(76, 46, 82);
/* oklch */ color: oklch(35.3% 0.071 320.8);
Tailwind
colors: {
  custom: {
    50: '#7f6782',
    500: '#4c2e52',
    950: '#000000',
  },
}
SCSS
$custom: #4c2e52;
$custom-light: #7f6782;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2e52",
  "rgb": {
    "r": 76,
    "g": 46,
    "b": 82
  },
  "hsl": {
    "h": 290,
    "s": 28.125,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35322,
    "c": 0.07143,
    "h": 320.8
  },
  "luminance": 0.041
}

Semantic roles & 50–950 ramp

primary
#4C2E52
secondary
#5F8458
accent
#C46374
background
#F7F6F8
surface
#EEEBEF
border
#C9C6CA
text
#0A060A
muted
#7C7A7C

Preview Lab

Preview with #4C2E52

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

Preview Lab → · Contrast checker → · Palette generator →

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