#4E2054#4E2054

#4E2054 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.3% C 0.102 H 322.9°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#4E2054
RGBrgb(78, 32, 84)
HSLhsl(293, 45%, 23%)
HSVhsv(293, 62%, 33%)
CMYKcmyk(7.1%, 61.9%, 0%, 67.1%)
CIE-LABlab(21.18, 30.26, -22.18)
CIE-LCHlch(21.18, 37.52, 323.75°)
OKLaboklab(33.33% 0.0813 -0.0615)
OKLCHoklch(33.33% 0.102 322.9)
XYZxyz(5.2585, 3.2931, 8.7444)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2054 #265420
analogous
#342054 #4E2054 #542040
triadic
#4E2054 #544E20 #20544E
tetradic
#4E2054 #543420 #265420 #204054
square
#4E2054 #543420 #265420 #204054
split-complementary
#4E2054 #405420 #205434
monochromatic
#150816 #250F28 #4E2054 #773180 #A042AD

Accessibility & contrast

On white

12.66
#4E2054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E2054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2054
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2054#FFFFFF#000000##FFFFFF
##4E20541.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172F56
Deuteranopia (green-blind)
#273553
Tritanopia (blue-blind)
#4F2736
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e2054;
/* rgb */ color: rgb(78, 32, 84);
/* oklch */ color: oklch(33.3% 0.102 322.9);
Tailwind
colors: {
  custom: {
    50: '#815e84',
    500: '#4e2054',
    950: '#000000',
  },
}
SCSS
$custom: #4e2054;
$custom-light: #815e84;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2054",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 84
  },
  "hsl": {
    "h": 293.077,
    "s": 44.828,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33331,
    "c": 0.10195,
    "h": 322.9
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#4E2054
secondary
#4F8947
accent
#D55362
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4E2054

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

Preview Lab → · Contrast checker → · Palette generator →

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