#4E2458#4E2458

#4E2458 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.2% C 0.099 H 319.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4E2458
RGBrgb(78, 36, 88)
HSLhsl(288, 42%, 24%)
HSVhsv(288, 59%, 35%)
CMYKcmyk(11.4%, 59.1%, 0%, 65.5%)
CIE-LABlab(22.25, 28.91, -23.16)
CIE-LCHlch(22.25, 37.04, 321.30°)
OKLaboklab(34.19% 0.0756 -0.0643)
OKLCHoklch(34.19% 0.099 319.6)
XYZxyz(5.5340, 3.5863, 9.6313)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2458 #2E5824
analogous
#342458 #4E2458 #582448
triadic
#4E2458 #584E24 #24584E
tetradic
#4E2458 #583424 #2E5824 #244858
square
#4E2458 #583424 #2E5824 #244858
split-complementary
#4E2458 #485824 #245834
monochromatic
#130916 #28122D #4E2458 #743683 #9B48AF

Accessibility & contrast

On white

12.23
#4E2458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E2458 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2458
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2458#FFFFFF#000000##FFFFFF
##4E24581.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A325A
Deuteranopia (green-blind)
#283757
Tritanopia (blue-blind)
#4E2C3A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2458;
/* rgb */ color: rgb(78, 36, 88);
/* oklch */ color: oklch(34.2% 0.099 319.6);
Tailwind
colors: {
  custom: {
    50: '#816187',
    500: '#4e2458',
    950: '#000000',
  },
}
SCSS
$custom: #4e2458;
$custom-light: #816187;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2458",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 88
  },
  "hsl": {
    "h": 288.462,
    "s": 41.935,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34193,
    "c": 0.09929,
    "h": 319.6
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#4E2458
secondary
#588C4C
accent
#D2566E
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2458

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

Preview Lab → · Contrast checker → · Palette generator →

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