#4E2057#4E2057

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

Color values

HEX#4E2057
RGBrgb(78, 32, 87)
HSLhsl(290, 46%, 23%)
HSVhsv(290, 63%, 34%)
CMYKcmyk(10.3%, 63.2%, 0%, 65.9%)
CIE-LABlab(21.36, 30.92, -23.90)
CIE-LCHlch(21.36, 39.08, 322.29°)
OKLaboklab(33.52% 0.0816 -0.0665)
OKLCHoklch(33.52% 0.105 320.8)
XYZxyz(5.3785, 3.3411, 9.3766)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2057 #295720
analogous
#322057 #4E2057 #572044
triadic
#4E2057 #574E20 #20574E
tetradic
#4E2057 #573220 #295720 #204457
square
#4E2057 #573220 #295720 #204457
split-complementary
#4E2057 #445720 #205732
monochromatic
#140816 #26102A #4E2057 #763084 #9E41B0

Accessibility & contrast

On white

12.59
#4E2057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2057
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2057#FFFFFF#000000##FFFFFF
##4E20571.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153059
Deuteranopia (green-blind)
#253556
Tritanopia (blue-blind)
#4F2838
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e2057;
/* rgb */ color: rgb(78, 32, 87);
/* oklch */ color: oklch(33.5% 0.105 320.8);
Tailwind
colors: {
  custom: {
    50: '#815e86',
    500: '#4e2057',
    950: '#000000',
  },
}
SCSS
$custom: #4e2057;
$custom-light: #815e86;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2057",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 87
  },
  "hsl": {
    "h": 290.182,
    "s": 46.218,
    "l": 23.333
  },
  "oklch": {
    "l": 0.3352,
    "c": 0.10522,
    "h": 320.8
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#4E2057
secondary
#528B47
accent
#D65268
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4E2057

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

Preview Lab → · Contrast checker → · Palette generator →

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