#4E2064#4E2064

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

Color values

HEX#4E2064
RGBrgb(78, 32, 100)
HSLhsl(281, 52%, 26%)
HSVhsv(281, 68%, 39%)
CMYKcmyk(22%, 68%, 0%, 60.8%)
CIE-LABlab(22.21, 33.94, -31.15)
CIE-LCHlch(22.21, 46.07, 317.46°)
OKLaboklab(34.41% 0.0817 -0.0876)
OKLCHoklch(34.41% 0.12 313)
XYZxyz(5.9582, 3.5730, 12.4299)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2064 #366420
analogous
#2C2064 #4E2064 #642058
triadic
#4E2064 #644E20 #20644E
tetradic
#4E2064 #642C20 #366420 #205864
square
#4E2064 #642C20 #366420 #205864
split-complementary
#4E2064 #586420 #20642C
monochromatic
#120717 #2A1136 #4E2064 #722F92 #963EC1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2064#FFFFFF#000000##FFFFFF
##4E20641.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)
#023366
Deuteranopia (green-blind)
#1C3662
Tritanopia (blue-blind)
#4C2D3F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2064;
/* rgb */ color: rgb(78, 32, 100);
/* oklch */ color: oklch(34.4% 0.120 313.0);
Tailwind
colors: {
  custom: {
    50: '#825f90',
    500: '#4e2064',
    950: '#000000',
  },
}
SCSS
$custom: #4e2064;
$custom-light: #825f90;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2064",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 100
  },
  "hsl": {
    "h": 280.588,
    "s": 51.515,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34406,
    "c": 0.11983,
    "h": 313
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#4E2064
secondary
#629848
accent
#DB4D7B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E2064

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

Preview Lab → · Contrast checker → · Palette generator →

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