#4E2159#4E2159

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

Color values

HEX#4E2159
RGBrgb(78, 33, 89)
HSLhsl(288, 46%, 24%)
HSVhsv(288, 63%, 35%)
CMYKcmyk(12.4%, 62.9%, 0%, 65.1%)
CIE-LABlab(21.69, 30.82, -24.72)
CIE-LCHlch(21.69, 39.51, 321.27°)
OKLaboklab(33.8% 0.0802 -0.0689)
OKLCHoklch(33.8% 0.106 319.4)
XYZxyz(5.4887, 3.4289, 9.8220)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2159 #2C5921
analogous
#322159 #4E2159 #592148
triadic
#4E2159 #594E21 #21594E
tetradic
#4E2159 #593221 #2C5921 #214859
square
#4E2159 #593221 #2C5921 #214859
split-complementary
#4E2159 #485921 #215932
monochromatic
#140816 #27102C #4E2159 #753286 #9C42B2

Accessibility & contrast

On white

12.46
#4E2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2159
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2159#FFFFFF#000000##FFFFFF
##4E21591.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14315B
Deuteranopia (green-blind)
#253658
Tritanopia (blue-blind)
#4E2A39
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2159;
/* rgb */ color: rgb(78, 33, 89);
/* oklch */ color: oklch(33.8% 0.106 319.4);
Tailwind
colors: {
  custom: {
    50: '#815f88',
    500: '#4e2159',
    950: '#000000',
  },
}
SCSS
$custom: #4e2159;
$custom-light: #815f88;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2159",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 288.214,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33797,
    "c": 0.10573,
    "h": 319.4
  },
  "luminance": 0.03429
}

Semantic roles & 50–950 ramp

primary
#4E2159
secondary
#568D49
accent
#D6526C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2159

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

Preview Lab → · Contrast checker → · Palette generator →

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