#4F2A4E#4F2A4E

#4F2A4E is a dark, moderate purple. Relative luminance 0.039; OKLCH L 34.8% C 0.077 H 328.0°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4F2A4E
RGBrgb(79, 42, 78)
HSLhsl(302, 31%, 24%)
HSVhsv(302, 47%, 31%)
CMYKcmyk(0%, 46.8%, 1.3%, 69%)
CIE-LABlab(23.23, 23.44, -14.95)
CIE-LCHlch(23.23, 27.80, 327.47°)
OKLaboklab(34.77% 0.0654 -0.0408)
OKLCHoklch(34.77% 0.077 328)
XYZxyz(5.4275, 3.8685, 7.6671)
Luminance0.0387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A4E #2A4F2B
analogous
#3D2A4F #4F2A4E #4F2A3B
triadic
#4F2A4E #4E4F2A #2A4E4F
tetradic
#4F2A4E #4F3D2A #2A4F2B #2A3B4F
square
#4F2A4E #4F3D2A #2A4F2B #2A3B4F
split-complementary
#4F2A4E #3B4F2A #2A4F3D
monochromatic
#140B14 #271527 #4F2A4E #773F75 #9F549D

Accessibility & contrast

On white

11.84
#4F2A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4F2A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A4E
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A4E#FFFFFF#000000##FFFFFF
##4F2A4E1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27344F
Deuteranopia (green-blind)
#31394D
Tritanopia (blue-blind)
#512D38
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f2a4e;
/* rgb */ color: rgb(79, 42, 78);
/* oklch */ color: oklch(34.8% 0.077 328.0);
Tailwind
colors: {
  custom: {
    50: '#81657f',
    500: '#4f2a4e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a4e;
$custom-light: #81657f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a4e",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 301.622,
    "s": 30.579,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34774,
    "c": 0.07705,
    "h": 328
  },
  "luminance": 0.03868
}

Semantic roles & 50–950 ramp

primary
#4F2A4E
secondary
#548155
accent
#C76461
background
#F8F6F7
surface
#EFEBEE
border
#CAC6C9
text
#0A050A
muted
#7C7A7C

Preview Lab

Preview with #4F2A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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