#4E2954#4E2954

#4E2954 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.8% C 0.085 H 321.9°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2954
RGBrgb(78, 41, 84)
HSLhsl(292, 34%, 25%)
HSVhsv(292, 51%, 33%)
CMYKcmyk(7.1%, 51.2%, 0%, 67.1%)
CIE-LABlab(23.16, 25.03, -19.08)
CIE-LCHlch(23.16, 31.47, 322.68°)
OKLaboklab(34.79% 0.067 -0.0526)
OKLCHoklch(34.79% 0.085 321.9)
XYZxyz(5.5349, 3.8459, 8.8366)
Luminance0.0385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2954 #2F5429
analogous
#392954 #4E2954 #542945
triadic
#4E2954 #544E29 #29544E
tetradic
#4E2954 #543929 #2F5429 #294554
square
#4E2954 #543929 #2F5429 #294554
split-complementary
#4E2954 #455429 #295439
monochromatic
#130A15 #28152B #4E2954 #743D7D #9A51A6

Accessibility & contrast

On white

11.87
#4E2954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E2954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2954
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2954#FFFFFF#000000##FFFFFF
##4E29541.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233455
Deuteranopia (green-blind)
#2E3953
Tritanopia (blue-blind)
#4F2E3A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2954;
/* rgb */ color: rgb(78, 41, 84);
/* oklch */ color: oklch(34.8% 0.085 321.9);
Tailwind
colors: {
  custom: {
    50: '#816484',
    500: '#4e2954',
    950: '#000000',
  },
}
SCSS
$custom: #4e2954;
$custom-light: #816484;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2954",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 84
  },
  "hsl": {
    "h": 291.628,
    "s": 34.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34786,
    "c": 0.0852,
    "h": 321.9
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#4E2954
secondary
#5A8752
accent
#CA5D6D
background
#F7F6F8
surface
#EEEBEF
border
#C9C6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2954

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

Preview Lab → · Contrast checker → · Palette generator →

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