#4E2662#4E2662

#4E2662 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 35.2% C 0.108 H 313.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4E2662
RGBrgb(78, 38, 98)
HSLhsl(280, 44%, 27%)
HSVhsv(280, 61%, 38%)
CMYKcmyk(20.4%, 61.2%, 0%, 61.6%)
CIE-LABlab(23.30, 30.13, -28.10)
CIE-LCHlch(23.30, 41.20, 317.00°)
OKLaboklab(35.16% 0.0733 -0.0787)
OKLCHoklch(35.16% 0.108 313)
XYZxyz(6.0392, 3.8879, 11.9852)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2662 #3A6226
analogous
#302662 #4E2662 #622658
triadic
#4E2662 #624E26 #26624E
tetradic
#4E2662 #623026 #3A6226 #265862
square
#4E2662 #623026 #3A6226 #265862
split-complementary
#4E2662 #586226 #266230
monochromatic
#120916 #2B1536 #4E2662 #71378E #944AB9

Accessibility & contrast

On white

11.81
#4E2662 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E2662 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2662
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2662#FFFFFF#000000##FFFFFF
##4E26621.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143564
Deuteranopia (green-blind)
#233861
Tritanopia (blue-blind)
#4C3040
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2662;
/* rgb */ color: rgb(78, 38, 98);
/* oklch */ color: oklch(35.2% 0.108 313.0);
Tailwind
colors: {
  custom: {
    50: '#81628f',
    500: '#4e2662',
    950: '#000000',
  },
}
SCSS
$custom: #4e2662;
$custom-light: #81628f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2662",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 98
  },
  "hsl": {
    "h": 280,
    "s": 44.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35157,
    "c": 0.1076,
    "h": 313
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#4E2662
secondary
#66954F
accent
#D4547F
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E2662

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

Preview Lab → · Contrast checker → · Palette generator →

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