#4E2A5D#4E2A5D

#4E2A5D is a dark, moderate purple. Relative luminance 0.041; OKLCH L 35.5% C 0.094 H 315.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#4E2A5D
RGBrgb(78, 42, 93)
HSLhsl(282, 38%, 26%)
HSVhsv(282, 55%, 36%)
CMYKcmyk(16.1%, 54.8%, 0%, 63.5%)
CIE-LABlab(23.89, 26.54, -23.88)
CIE-LCHlch(23.89, 35.70, 318.03°)
OKLaboklab(35.49% 0.0668 -0.0665)
OKLCHoklch(35.49% 0.094 315.1)
XYZxyz(5.9453, 4.0661, 10.8255)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A5D #395D2A
analogous
#352A5D #4E2A5D #5D2A53
triadic
#4E2A5D #5D4E2A #2A5D4E
tetradic
#4E2A5D #5D352A #395D2A #2A535D
square
#4E2A5D #5D352A #395D2A #2A535D
split-complementary
#4E2A5D #535D2A #2A5D35
monochromatic
#120A15 #2B1733 #4E2A5D #713D87 #9451B0

Accessibility & contrast

On white

11.58
#4E2A5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E2A5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A5D
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A5D#FFFFFF#000000##FFFFFF
##4E2A5D1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F375F
Deuteranopia (green-blind)
#2A3A5C
Tritanopia (blue-blind)
#4D323F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2a5d;
/* rgb */ color: rgb(78, 42, 93);
/* oklch */ color: oklch(35.5% 0.094 315.1);
Tailwind
colors: {
  custom: {
    50: '#81658b',
    500: '#4e2a5d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a5d;
$custom-light: #81658b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a5d",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 93
  },
  "hsl": {
    "h": 282.353,
    "s": 37.778,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35493,
    "c": 0.09424,
    "h": 315.1
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#4E2A5D
secondary
#658F53
accent
#CE5A7C
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0A060C
muted
#7C7A7D

Preview Lab

Preview with #4E2A5D

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

Preview Lab → · Contrast checker → · Palette generator →

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