#4E2552#4E2552

#4E2552 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.0% C 0.091 H 323.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#4E2552
RGBrgb(78, 37, 82)
HSLhsl(295, 38%, 23%)
HSVhsv(295, 55%, 32%)
CMYKcmyk(4.9%, 54.9%, 0%, 67.8%)
CIE-LABlab(22.13, 26.97, -19.35)
CIE-LCHlch(22.13, 33.19, 324.35°)
OKLaboklab(33.99% 0.0732 -0.0533)
OKLCHoklch(33.99% 0.091 323.9)
XYZxyz(5.3263, 3.5523, 8.3861)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2552 #295225
analogous
#372552 #4E2552 #52253F
triadic
#4E2552 #524E25 #25524E
tetradic
#4E2552 #523725 #295225 #253F52
square
#4E2552 #523725 #295225 #253F52
split-complementary
#4E2552 #3F5225 #255237
monochromatic
#140A15 #261228 #4E2552 #76387C #9E4BA6

Accessibility & contrast

On white

12.28
#4E2552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E2552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2552
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2552#FFFFFF#000000##FFFFFF
##4E25521.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3254
Deuteranopia (green-blind)
#2C3751
Tritanopia (blue-blind)
#4F2B37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2552;
/* rgb */ color: rgb(78, 37, 82);
/* oklch */ color: oklch(34.0% 0.091 323.9);
Tailwind
colors: {
  custom: {
    50: '#816183',
    500: '#4e2552',
    950: '#000000',
  },
}
SCSS
$custom: #4e2552;
$custom-light: #816183;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2552",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 82
  },
  "hsl": {
    "h": 294.667,
    "s": 37.815,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33993,
    "c": 0.0906,
    "h": 323.9
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#4E2552
secondary
#52854D
accent
#CE5A64
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4E2552

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

Preview Lab → · Contrast checker → · Palette generator →

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