#4E2252#4E2252

#4E2252 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.5% C 0.096 H 324.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#4E2252
RGBrgb(78, 34, 82)
HSLhsl(295, 41%, 23%)
HSVhsv(295, 59%, 32%)
CMYKcmyk(4.9%, 58.5%, 0%, 67.8%)
CIE-LABlab(21.48, 28.71, -20.37)
CIE-LCHlch(21.48, 35.20, 324.64°)
OKLaboklab(33.51% 0.078 -0.0563)
OKLCHoklch(33.51% 0.096 324.2)
XYZxyz(5.2368, 3.3732, 8.3563)
Luminance0.0337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2252 #265222
analogous
#362252 #4E2252 #52223E
triadic
#4E2252 #524E22 #22524E
tetradic
#4E2252 #523622 #265222 #223E52
square
#4E2252 #523622 #265222 #223E52
split-complementary
#4E2252 #3E5222 #225236
monochromatic
#150916 #251027 #4E2252 #77347D #A046A9

Accessibility & contrast

On white

12.54
#4E2252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E2252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2252
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2252#FFFFFF#000000##FFFFFF
##4E22521.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3054
Deuteranopia (green-blind)
#293551
Tritanopia (blue-blind)
#502836
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2252;
/* rgb */ color: rgb(78, 34, 82);
/* oklch */ color: oklch(33.5% 0.096 324.2);
Tailwind
colors: {
  custom: {
    50: '#815f83',
    500: '#4e2252',
    950: '#000000',
  },
}
SCSS
$custom: #4e2252;
$custom-light: #815f83;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2252",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 295,
    "s": 41.379,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33512,
    "c": 0.09619,
    "h": 324.2
  },
  "luminance": 0.03373
}

Semantic roles & 50–950 ramp

primary
#4E2252
secondary
#4F864A
accent
#D15761
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4E2252

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

Preview Lab → · Contrast checker → · Palette generator →

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