#4E2147#4E2147

#4E2147 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 32.7% C 0.087 H 333.6°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#4E2147
RGBrgb(78, 33, 71)
HSLhsl(309, 41%, 22%)
HSVhsv(309, 58%, 31%)
CMYKcmyk(0%, 57.7%, 9%, 69.4%)
CIE-LABlab(20.68, 26.99, -14.17)
CIE-LCHlch(20.68, 30.49, 332.29°)
OKLaboklab(32.73% 0.0777 -0.0385)
OKLCHoklch(32.73% 0.087 333.6)
XYZxyz(4.8231, 3.1627, 6.3164)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2147 #214E28
analogous
#3F214E #4E2147 #4E2131
triadic
#4E2147 #474E21 #21474E
tetradic
#4E2147 #4E3F21 #214E28 #21314E
square
#4E2147 #4E3F21 #214E28 #21314E
split-complementary
#4E2147 #314E21 #214E3F
monochromatic
#160914 #230F20 #4E2147 #79336E #A44595

Accessibility & contrast

On white

12.86
#4E2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2147
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2147#FFFFFF#000000##FFFFFF
##4E21471.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202E48
Deuteranopia (green-blind)
#2D3446
Tritanopia (blue-blind)
#512430
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e2147;
/* rgb */ color: rgb(78, 33, 71);
/* oklch */ color: oklch(32.7% 0.087 333.6);
Tailwind
colors: {
  custom: {
    50: '#815f7a',
    500: '#4e2147',
    950: '#000000',
  },
}
SCSS
$custom: #4e2147;
$custom-light: #815f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2147",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 309.333,
    "s": 40.541,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32734,
    "c": 0.08667,
    "h": 333.6
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#4E2147
secondary
#498252
accent
#D06A57
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4E2147

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

Preview Lab → · Contrast checker → · Palette generator →

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