#4E2751#4E2751

#4E2751 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.3% C 0.086 H 324.6°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4E2751
RGBrgb(78, 39, 81)
HSLhsl(296, 35%, 24%)
HSVhsv(296, 52%, 32%)
CMYKcmyk(3.7%, 51.9%, 0%, 68.2%)
CIE-LABlab(22.53, 25.56, -18.05)
CIE-LCHlch(22.53, 31.30, 324.77°)
OKLaboklab(34.27% 0.0698 -0.0496)
OKLCHoklch(34.27% 0.086 324.6)
XYZxyz(5.3525, 3.6651, 8.2085)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2751 #2A5127
analogous
#392751 #4E2751 #51273F
triadic
#4E2751 #514E27 #27514E
tetradic
#4E2751 #513927 #2A5127 #273F51
square
#4E2751 #513927 #2A5127 #273F51
split-complementary
#4E2751 #3F5127 #275139
monochromatic
#140A15 #261328 #4E2751 #763B7A #9E4FA4

Accessibility & contrast

On white

12.12
#4E2751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E2751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2751
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2751#FFFFFF#000000##FFFFFF
##4E27511.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223352
Deuteranopia (green-blind)
#2D3850
Tritanopia (blue-blind)
#502C38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2751;
/* rgb */ color: rgb(78, 39, 81);
/* oklch */ color: oklch(34.3% 0.086 324.6);
Tailwind
colors: {
  custom: {
    50: '#816382',
    500: '#4e2751',
    950: '#000000',
  },
}
SCSS
$custom: #4e2751;
$custom-light: #816382;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2751",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 81
  },
  "hsl": {
    "h": 295.714,
    "s": 35,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34271,
    "c": 0.08563,
    "h": 324.6
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#4E2751
secondary
#548450
accent
#CB5D65
background
#F7F5F7
surface
#EEEAEE
border
#C9C6C9
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4E2751

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

Preview Lab → · Contrast checker → · Palette generator →

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