#4E2162#4E2162

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

Color values

HEX#4E2162
RGBrgb(78, 33, 98)
HSLhsl(282, 50%, 26%)
HSVhsv(282, 66%, 38%)
CMYKcmyk(20.4%, 66.3%, 0%, 61.6%)
CIE-LABlab(22.26, 32.93, -29.74)
CIE-LCHlch(22.26, 44.37, 317.91°)
OKLaboklab(34.41% 0.0804 -0.0835)
OKLCHoklch(34.41% 0.116 313.9)
XYZxyz(5.8900, 3.5894, 11.9355)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2162 #356221
analogous
#2D2162 #4E2162 #622155
triadic
#4E2162 #624E21 #21624E
tetradic
#4E2162 #622D21 #356221 #215562
square
#4E2162 #622D21 #356221 #215562
split-complementary
#4E2162 #556221 #21622D
monochromatic
#120817 #2A1234 #4E2162 #723090 #9740BE

Accessibility & contrast

On white

12.22
#4E2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2162
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2162#FFFFFF#000000##FFFFFF
##4E21621.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093364
Deuteranopia (green-blind)
#1E3660
Tritanopia (blue-blind)
#4C2D3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2162;
/* rgb */ color: rgb(78, 33, 98);
/* oklch */ color: oklch(34.4% 0.116 313.9);
Tailwind
colors: {
  custom: {
    50: '#825f8f',
    500: '#4e2162',
    950: '#000000',
  },
}
SCSS
$custom: #4e2162;
$custom-light: #825f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2162",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 281.538,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34405,
    "c": 0.11596,
    "h": 313.9
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#4E2162
secondary
#619649
accent
#D94F79
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E2162

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

Preview Lab → · Contrast checker → · Palette generator →

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