#4E2156#4E2156

#4E2156 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.6% C 0.102 H 321.4°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4E2156
RGBrgb(78, 33, 86)
HSLhsl(291, 45%, 23%)
HSVhsv(291, 62%, 34%)
CMYKcmyk(9.3%, 61.6%, 0%, 66.3%)
CIE-LABlab(21.50, 30.15, -23.01)
CIE-LCHlch(21.50, 37.93, 322.65°)
OKLaboklab(33.61% 0.08 -0.0639)
OKLCHoklch(33.61% 0.102 321.4)
XYZxyz(5.3653, 3.3795, 9.1720)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2156 #295621
analogous
#332156 #4E2156 #562143
triadic
#4E2156 #564E21 #21564E
tetradic
#4E2156 #563321 #295621 #214356
square
#4E2156 #563321 #295621 #214356
split-complementary
#4E2156 #435621 #215633
monochromatic
#140816 #26102A #4E2156 #763282 #9E43AE

Accessibility & contrast

On white

12.53
#4E2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2156
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2156#FFFFFF#000000##FFFFFF
##4E21561.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2156;
/* rgb */ color: rgb(78, 33, 86);
/* oklch */ color: oklch(33.6% 0.102 321.4);
Tailwind
colors: {
  custom: {
    50: '#815f86',
    500: '#4e2156',
    950: '#000000',
  },
}
SCSS
$custom: #4e2156;
$custom-light: #815f86;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2156",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 290.943,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33605,
    "c": 0.10239,
    "h": 321.4
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#4E2156
secondary
#528A49
accent
#D45467
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2156

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

Preview Lab → · Contrast checker → · Palette generator →

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