#4E2161#4E2161

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

Color values

HEX#4E2161
RGBrgb(78, 33, 97)
HSLhsl(282, 49%, 25%)
HSVhsv(282, 66%, 38%)
CMYKcmyk(19.6%, 66%, 0%, 62%)
CIE-LABlab(22.20, 32.69, -29.19)
CIE-LCHlch(22.20, 43.83, 318.23°)
OKLaboklab(34.34% 0.0804 -0.0819)
OKLCHoklch(34.34% 0.115 314.5)
XYZxyz(5.8431, 3.5707, 11.6884)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2161 #346121
analogous
#2E2161 #4E2161 #612154
triadic
#4E2161 #614E21 #21614E
tetradic
#4E2161 #612E21 #346121 #215461
square
#4E2161 #612E21 #346121 #215461
split-complementary
#4E2161 #546121 #21612E
monochromatic
#120817 #291133 #4E2161 #73318F #9740BC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2161#FFFFFF#000000##FFFFFF
##4E21611.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)
#0A3363
Deuteranopia (green-blind)
#1F365F
Tritanopia (blue-blind)
#4C2D3D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e2161;
/* rgb */ color: rgb(78, 33, 97);
/* oklch */ color: oklch(34.3% 0.115 314.5);
Tailwind
colors: {
  custom: {
    50: '#825f8e',
    500: '#4e2161',
    950: '#000000',
  },
}
SCSS
$custom: #4e2161;
$custom-light: #825f8e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2161",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 282.188,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34335,
    "c": 0.11482,
    "h": 314.5
  },
  "luminance": 0.0357
}

Semantic roles & 50–950 ramp

primary
#4E2161
secondary
#5F9549
accent
#D94F78
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E2161

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

Preview Lab → · Contrast checker → · Palette generator →

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