#4E2C7D#4E2C7D

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

Color values

HEX#4E2C7D
RGBrgb(78, 44, 125)
HSLhsl(265, 48%, 33%)
HSVhsv(265, 65%, 49%)
CMYKcmyk(37.6%, 64.8%, 0%, 51%)
CIE-LABlab(26.45, 33.77, -40.37)
CIE-LCHlch(26.45, 52.63, 309.91°)
OKLaboklab(38.05% 0.0646 -0.1148)
OKLCHoklch(38.05% 0.132 299.4)
XYZxyz(7.7433, 4.9017, 19.9362)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C7D #5B7D2C
analogous
#2C327D #4E2C7D #762C7D
triadic
#4E2C7D #7D4E2C #2C7D4E
tetradic
#4E2C7D #7D2C32 #5B7D2C #2C7D76
square
#4E2C7D #7D2C32 #5B7D2C #2C7D76
split-complementary
#4E2C7D #7D762C #327D2C
monochromatic
#160C22 #321C50 #4E2C7D #6A3CAA #895DC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2C7D#FFFFFF#000000##FFFFFF
##4E2C7D1.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)
#003E80
Deuteranopia (green-blind)
#0A3E7B
Tritanopia (blue-blind)
#443E50
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2c7d;
/* rgb */ color: rgb(78, 44, 125);
/* oklch */ color: oklch(38.1% 0.132 299.4);
Tailwind
colors: {
  custom: {
    50: '#8367a3',
    500: '#4e2c7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c7d;
$custom-light: #8367a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c7d",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 265.185,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38051,
    "c": 0.13172,
    "h": 299.4
  },
  "luminance": 0.04902
}

Semantic roles & 50–950 ramp

primary
#4E2C7D
secondary
#89AC59
accent
#D8509F
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4E2C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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