#4E1954#4E1954

#4E1954 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.4% C 0.113 H 323.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#4E1954
RGBrgb(78, 25, 84)
HSLhsl(294, 54%, 21%)
HSVhsv(294, 70%, 33%)
CMYKcmyk(7.1%, 70.2%, 0%, 67.1%)
CIE-LABlab(19.86, 33.87, -24.27)
CIE-LCHlch(19.86, 41.67, 324.38°)
OKLaboklab(32.37% 0.0912 -0.0675)
OKLCHoklch(32.37% 0.113 323.5)
XYZxyz(5.0896, 2.9553, 8.6881)
Luminance0.0295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1954 #1F5419
analogous
#311954 #4E1954 #54193D
triadic
#4E1954 #544E19 #19544E
tetradic
#4E1954 #543119 #1F5419 #193D54
square
#4E1954 #543119 #1F5419 #193D54
split-complementary
#4E1954 #3D5419 #195431
monochromatic
#160718 #220B25 #4E1954 #7A2783 #A635B2

Accessibility & contrast

On white

13.20
#4E1954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4E1954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1954
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1954#FFFFFF#000000##FFFFFF
##4E19541.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2C56
Deuteranopia (green-blind)
#223252
Tritanopia (blue-blind)
#4F2234
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1954;
/* rgb */ color: rgb(78, 25, 84);
/* oklch */ color: oklch(32.4% 0.113 323.5);
Tailwind
colors: {
  custom: {
    50: '#825a84',
    500: '#4e1954',
    950: '#000000',
  },
}
SCSS
$custom: #4e1954;
$custom-light: #825a84;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1954",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 293.898,
    "s": 54.128,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32373,
    "c": 0.11348,
    "h": 323.5
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#4E1954
secondary
#468A3E
accent
#DD4A59
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1954

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

Preview Lab → · Contrast checker → · Palette generator →

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