#4E2457#4E2457

#4E2457 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.1% C 0.098 H 320.3°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4E2457
RGBrgb(78, 36, 87)
HSLhsl(289, 41%, 24%)
HSVhsv(289, 59%, 34%)
CMYKcmyk(10.3%, 58.6%, 0%, 65.9%)
CIE-LABlab(22.20, 28.68, -22.59)
CIE-LCHlch(22.20, 36.50, 321.78°)
OKLaboklab(34.13% 0.0755 -0.0627)
OKLCHoklch(34.13% 0.098 320.3)
XYZxyz(5.4929, 3.5698, 9.4147)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2457 #2D5724
analogous
#352457 #4E2457 #572447
triadic
#4E2457 #574E24 #24574E
tetradic
#4E2457 #573524 #2D5724 #244757
square
#4E2457 #573524 #2D5724 #244757
split-complementary
#4E2457 #475724 #245735
monochromatic
#130916 #27122C #4E2457 #753682 #9C48AE

Accessibility & contrast

On white

12.25
#4E2457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E2457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2457
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2457#FFFFFF#000000##FFFFFF
##4E24571.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3259
Deuteranopia (green-blind)
#283756
Tritanopia (blue-blind)
#4F2B39
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2457;
/* rgb */ color: rgb(78, 36, 87);
/* oklch */ color: oklch(34.1% 0.098 320.3);
Tailwind
colors: {
  custom: {
    50: '#816186',
    500: '#4e2457',
    950: '#000000',
  },
}
SCSS
$custom: #4e2457;
$custom-light: #816186;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2457",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 87
  },
  "hsl": {
    "h": 289.412,
    "s": 41.463,
    "l": 24.118
  },
  "oklch": {
    "l": 0.34131,
    "c": 0.09814,
    "h": 320.3
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#4E2457
secondary
#578B4C
accent
#D1576C
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2457

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

Preview Lab → · Contrast checker → · Palette generator →

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