#4E2257#4E2257

#4E2257 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 33.8% C 0.102 H 320.6°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4E2257
RGBrgb(78, 34, 87)
HSLhsl(290, 44%, 24%)
HSVhsv(290, 61%, 34%)
CMYKcmyk(10.3%, 60.9%, 0%, 65.9%)
CIE-LABlab(21.77, 29.81, -23.26)
CIE-LCHlch(21.77, 37.81, 322.04°)
OKLaboklab(33.82% 0.0786 -0.0646)
OKLCHoklch(33.82% 0.102 320.6)
XYZxyz(5.4340, 3.4521, 9.3951)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2257 #2B5722
analogous
#332257 #4E2257 #572245
triadic
#4E2257 #574E22 #22574E
tetradic
#4E2257 #573322 #2B5722 #224557
square
#4E2257 #573322 #2B5722 #224557
split-complementary
#4E2257 #455722 #225733
monochromatic
#140916 #27112B #4E2257 #753383 #9D44AF

Accessibility & contrast

On white

12.42
#4E2257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E2257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2257
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2257#FFFFFF#000000##FFFFFF
##4E22571.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183159
Deuteranopia (green-blind)
#273656
Tritanopia (blue-blind)
#4F2A39
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2257;
/* rgb */ color: rgb(78, 34, 87);
/* oklch */ color: oklch(33.8% 0.102 320.6);
Tailwind
colors: {
  custom: {
    50: '#816086',
    500: '#4e2257',
    950: '#000000',
  },
}
SCSS
$custom: #4e2257;
$custom-light: #816086;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2257",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 289.811,
    "s": 43.802,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33819,
    "c": 0.10174,
    "h": 320.6
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#4E2257
secondary
#558B4A
accent
#D4546A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2257

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

Preview Lab → · Contrast checker → · Palette generator →

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