#4E2154#4E2154

#4E2154 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.5% C 0.100 H 322.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#4E2154
RGBrgb(78, 33, 84)
HSLhsl(293, 44%, 23%)
HSVhsv(293, 61%, 33%)
CMYKcmyk(7.1%, 60.7%, 0%, 67.1%)
CIE-LABlab(21.39, 29.70, -21.86)
CIE-LCHlch(21.39, 36.88, 323.65°)
OKLaboklab(33.48% 0.0798 -0.0606)
OKLCHoklch(33.48% 0.1 322.8)
XYZxyz(5.2858, 3.3478, 8.7535)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2154 #275421
analogous
#342154 #4E2154 #542140
triadic
#4E2154 #544E21 #21544E
tetradic
#4E2154 #543421 #275421 #214054
square
#4E2154 #543421 #275421 #214054
split-complementary
#4E2154 #405421 #215434
monochromatic
#140916 #251028 #4E2154 #773280 #A044AC

Accessibility & contrast

On white

12.58
#4E2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2154
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2154#FFFFFF#000000##FFFFFF
##4E21541.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193056
Deuteranopia (green-blind)
#283553
Tritanopia (blue-blind)
#4F2837
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e2154;
/* rgb */ color: rgb(78, 33, 84);
/* oklch */ color: oklch(33.5% 0.100 322.8);
Tailwind
colors: {
  custom: {
    50: '#815f84',
    500: '#4e2154',
    950: '#000000',
  },
}
SCSS
$custom: #4e2154;
$custom-light: #815f84;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2154",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 292.941,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3348,
    "c": 0.10018,
    "h": 322.8
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#4E2154
secondary
#508849
accent
#D35463
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2154

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

Preview Lab → · Contrast checker → · Palette generator →

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