#4E2256#4E2256

#4E2256 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.101 H 321.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#4E2256
RGBrgb(78, 34, 86)
HSLhsl(291, 43%, 24%)
HSVhsv(291, 60%, 34%)
CMYKcmyk(9.3%, 60.5%, 0%, 66.3%)
CIE-LABlab(21.71, 29.59, -22.68)
CIE-LCHlch(21.71, 37.28, 322.53°)
OKLaboklab(33.76% 0.0785 -0.063)
OKLCHoklch(33.76% 0.101 321.3)
XYZxyz(5.3934, 3.4359, 9.1814)
Luminance0.0344 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2256 #2A5622
analogous
#342256 #4E2256 #562244
triadic
#4E2256 #564E22 #22564E
tetradic
#4E2256 #563422 #2A5622 #224456
square
#4E2256 #563422 #2A5622 #224456
split-complementary
#4E2256 #445622 #225634
monochromatic
#140916 #26112A #4E2256 #763382 #9E45AE

Accessibility & contrast

On white

12.45
#4E2256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2256
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2256#FFFFFF#000000##FFFFFF
##4E22561.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183158
Deuteranopia (green-blind)
#273655
Tritanopia (blue-blind)
#4F2938
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2256;
/* rgb */ color: rgb(78, 34, 86);
/* oklch */ color: oklch(33.8% 0.101 321.3);
Tailwind
colors: {
  custom: {
    50: '#816086',
    500: '#4e2256',
    950: '#000000',
  },
}
SCSS
$custom: #4e2256;
$custom-light: #816086;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2256",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 290.769,
    "s": 43.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33757,
    "c": 0.10061,
    "h": 321.3
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#4E2256
secondary
#548A4A
accent
#D35568
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2256

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

Preview Lab → · Contrast checker → · Palette generator →

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