#4E2562#4E2562

#4E2562 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 35.0% C 0.109 H 313.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4E2562
RGBrgb(78, 37, 98)
HSLhsl(280, 45%, 26%)
HSVhsv(280, 62%, 38%)
CMYKcmyk(20.4%, 62.2%, 0%, 61.6%)
CIE-LABlab(23.08, 30.71, -28.44)
CIE-LCHlch(23.08, 41.85, 317.20°)
OKLaboklab(35% 0.0748 -0.0797)
OKLCHoklch(35% 0.109 313.2)
XYZxyz(6.0077, 3.8248, 11.9747)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2562 #396225
analogous
#302562 #4E2562 #622558
triadic
#4E2562 #624E25 #25624E
tetradic
#4E2562 #623025 #396225 #255862
square
#4E2562 #623025 #396225 #255862
split-complementary
#4E2562 #586225 #256230
monochromatic
#120816 #2B1436 #4E2562 #71368E #9448BA

Accessibility & contrast

On white

11.90
#4E2562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2562
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2562#FFFFFF#000000##FFFFFF
##4E25621.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123564
Deuteranopia (green-blind)
#223860
Tritanopia (blue-blind)
#4C303F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2562;
/* rgb */ color: rgb(78, 37, 98);
/* oklch */ color: oklch(35.0% 0.109 313.2);
Tailwind
colors: {
  custom: {
    50: '#82628f',
    500: '#4e2562',
    950: '#000000',
  },
}
SCSS
$custom: #4e2562;
$custom-light: #82628f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2562",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 98
  },
  "hsl": {
    "h": 280.328,
    "s": 45.185,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35,
    "c": 0.10932,
    "h": 313.2
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#4E2562
secondary
#65954E
accent
#D5537E
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E2562

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

Preview Lab → · Contrast checker → · Palette generator →

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