#4E2D7A#4E2D7A

#4E2D7A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.0% C 0.126 H 300.2°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#4E2D7A
RGBrgb(78, 45, 122)
HSLhsl(266, 46%, 33%)
HSVhsv(266, 63%, 48%)
CMYKcmyk(36.1%, 63.1%, 0%, 52.2%)
CIE-LABlab(26.45, 32.35, -38.48)
CIE-LCHlch(26.45, 50.27, 310.05°)
OKLaboklab(37.98% 0.0635 -0.1092)
OKLCHoklch(37.98% 0.126 300.2)
XYZxyz(7.5923, 4.9016, 18.9547)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D7A #597A2D
analogous
#2D337A #4E2D7A #742D7A
triadic
#4E2D7A #7A4E2D #2D7A4E
tetradic
#4E2D7A #7A2D33 #597A2D #2D7A74
square
#4E2D7A #7A2D33 #597A2D #2D7A74
split-complementary
#4E2D7A #7A742D #337A2D
monochromatic
#150C21 #311D4D #4E2D7A #6B3DA7 #895EC4

Accessibility & contrast

On white

10.60
#4E2D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D7A
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D7A#FFFFFF#000000##FFFFFF
##4E2D7A1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7C
Deuteranopia (green-blind)
#123E78
Tritanopia (blue-blind)
#453D4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2d7a;
/* rgb */ color: rgb(78, 45, 122);
/* oklch */ color: oklch(38.0% 0.126 300.2);
Tailwind
colors: {
  custom: {
    50: '#8368a1',
    500: '#4e2d7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d7a;
$custom-light: #8368a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d7a",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 265.714,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.12634,
    "h": 300.2
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#4E2D7A
secondary
#87AA59
accent
#D6529D
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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