#4E2A5E#4E2A5E

#4E2A5E is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.6% C 0.095 H 314.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#4E2A5E
RGBrgb(78, 42, 94)
HSLhsl(282, 38%, 27%)
HSVhsv(282, 55%, 37%)
CMYKcmyk(17%, 55.3%, 0%, 63.1%)
CIE-LABlab(23.95, 26.79, -24.44)
CIE-LCHlch(23.95, 36.27, 317.62°)
OKLaboklab(35.56% 0.0669 -0.0681)
OKLCHoklch(35.56% 0.095 314.5)
XYZxyz(5.9899, 4.0839, 11.0603)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A5E #3A5E2A
analogous
#342A5E #4E2A5E #5E2A54
triadic
#4E2A5E #5E4E2A #2A5E4E
tetradic
#4E2A5E #5E342A #3A5E2A #2A545E
square
#4E2A5E #5E342A #3A5E2A #2A545E
split-complementary
#4E2A5E #545E2A #2A5E34
monochromatic
#120915 #2B1734 #4E2A5E #713D88 #9451B1

Accessibility & contrast

On white

11.56
#4E2A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E2A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A5E
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A5E#FFFFFF#000000##FFFFFF
##4E2A5E1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3760
Deuteranopia (green-blind)
#293A5D
Tritanopia (blue-blind)
#4D323F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2a5e;
/* rgb */ color: rgb(78, 42, 94);
/* oklch */ color: oklch(35.6% 0.095 314.5);
Tailwind
colors: {
  custom: {
    50: '#81658c',
    500: '#4e2a5e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a5e;
$custom-light: #81658c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a5e",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 281.538,
    "s": 38.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35555,
    "c": 0.09549,
    "h": 314.5
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#4E2A5E
secondary
#669053
accent
#CE5A7D
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A060C
muted
#7C7A7D

Preview Lab

Preview with #4E2A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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