#4E2160#4E2160

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

Color values

HEX#4E2160
RGBrgb(78, 33, 96)
HSLhsl(283, 49%, 25%)
HSVhsv(283, 66%, 38%)
CMYKcmyk(18.7%, 65.6%, 0%, 62.4%)
CIE-LABlab(22.13, 32.45, -28.64)
CIE-LCHlch(22.13, 43.28, 318.57°)
OKLaboklab(34.27% 0.0804 -0.0803)
OKLCHoklch(34.27% 0.114 315.1)
XYZxyz(5.7967, 3.5521, 11.4443)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2160 #336021
analogous
#2E2160 #4E2160 #602152
triadic
#4E2160 #604E21 #21604E
tetradic
#4E2160 #602E21 #336021 #215260
square
#4E2160 #602E21 #336021 #215260
split-complementary
#4E2160 #526021 #21602E
monochromatic
#130817 #291132 #4E2160 #73318E #9840BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2160#FFFFFF#000000##FFFFFF
##4E21601.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)
#0C3262
Deuteranopia (green-blind)
#20365E
Tritanopia (blue-blind)
#4D2C3D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2160;
/* rgb */ color: rgb(78, 33, 96);
/* oklch */ color: oklch(34.3% 0.114 315.1);
Tailwind
colors: {
  custom: {
    50: '#825f8d',
    500: '#4e2160',
    950: '#000000',
  },
}
SCSS
$custom: #4e2160;
$custom-light: #825f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2160",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 96
  },
  "hsl": {
    "h": 282.857,
    "s": 48.837,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.11367,
    "h": 315.1
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#4E2160
secondary
#5E9449
accent
#D84F77
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E2160

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

Preview Lab → · Contrast checker → · Palette generator →

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