#4E2157#4E2157

#4E2157 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.7% C 0.103 H 320.7°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#4E2157
RGBrgb(78, 33, 87)
HSLhsl(290, 45%, 24%)
HSVhsv(290, 62%, 34%)
CMYKcmyk(10.3%, 62.1%, 0%, 65.9%)
CIE-LABlab(21.56, 30.37, -23.58)
CIE-LCHlch(21.56, 38.45, 322.17°)
OKLaboklab(33.67% 0.0801 -0.0656)
OKLCHoklch(33.67% 0.103 320.7)
XYZxyz(5.4058, 3.3958, 9.3857)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2157 #2A5721
analogous
#332157 #4E2157 #572145
triadic
#4E2157 #574E21 #21574E
tetradic
#4E2157 #573321 #2A5721 #214557
square
#4E2157 #573321 #2A5721 #214557
split-complementary
#4E2157 #455721 #215733
monochromatic
#140816 #26102B #4E2157 #763283 #9E43B0

Accessibility & contrast

On white

12.51
#4E2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E2157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2157
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2157#FFFFFF#000000##FFFFFF
##4E21571.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163159
Deuteranopia (green-blind)
#263556
Tritanopia (blue-blind)
#4F2938
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e2157;
/* rgb */ color: rgb(78, 33, 87);
/* oklch */ color: oklch(33.7% 0.103 320.7);
Tailwind
colors: {
  custom: {
    50: '#815f86',
    500: '#4e2157',
    950: '#000000',
  },
}
SCSS
$custom: #4e2157;
$custom-light: #815f86;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2157",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 290,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33668,
    "c": 0.10349,
    "h": 320.7
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#4E2157
secondary
#548B49
accent
#D55369
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2157

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

Preview Lab → · Contrast checker → · Palette generator →

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