#4E2152#4E2152

#4E2152 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.4% C 0.098 H 324.3°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2152
RGBrgb(78, 33, 82)
HSLhsl(295, 43%, 23%)
HSVhsv(295, 60%, 32%)
CMYKcmyk(4.9%, 59.8%, 0%, 67.8%)
CIE-LABlab(21.27, 29.27, -20.70)
CIE-LCHlch(21.27, 35.85, 324.73°)
OKLaboklab(33.36% 0.0796 -0.0572)
OKLCHoklch(33.36% 0.098 324.3)
XYZxyz(5.2086, 3.3169, 8.3469)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2152 #255221
analogous
#352152 #4E2152 #52213E
triadic
#4E2152 #524E21 #21524E
tetradic
#4E2152 #523521 #255221 #213E52
square
#4E2152 #523521 #255221 #213E52
split-complementary
#4E2152 #3E5221 #215235
monochromatic
#150916 #240F26 #4E2152 #78337E #A144A9

Accessibility & contrast

On white

12.62
#4E2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2152
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2152#FFFFFF#000000##FFFFFF
##4E21521.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3054
Deuteranopia (green-blind)
#293551
Tritanopia (blue-blind)
#502736
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e2152;
/* rgb */ color: rgb(78, 33, 82);
/* oklch */ color: oklch(33.4% 0.098 324.3);
Tailwind
colors: {
  custom: {
    50: '#815f83',
    500: '#4e2152',
    950: '#000000',
  },
}
SCSS
$custom: #4e2152;
$custom-light: #815f83;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2152",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 295.102,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33358,
    "c": 0.098,
    "h": 324.3
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

primary
#4E2152
secondary
#4E8649
accent
#D25560
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4E2152

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

Preview Lab → · Contrast checker → · Palette generator →

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