#4E2C9D#4E2C9D

#4E2C9D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.172 H 290.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E2C9D
RGBrgb(78, 44, 157)
HSLhsl(258, 56%, 39%)
HSVhsv(258, 72%, 62%)
CMYKcmyk(50.3%, 72%, 0%, 38.4%)
CIE-LABlab(29.04, 42.88, -55.98)
CIE-LCHlch(29.04, 70.52, 307.45°)
OKLaboklab(40.72% 0.06 -0.1606)
OKLCHoklch(40.72% 0.172 290.5)
XYZxyz(10.1266, 5.8550, 32.4883)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C9D #7B9D2C
analogous
#2C439D #4E2C9D #872C9D
triadic
#4E2C9D #9D4E2C #2C9D4E
tetradic
#4E2C9D #9D2C43 #7B9D2C #2C9D87
square
#4E2C9D #9D2C43 #7B9D2C #2C9D87
split-complementary
#4E2C9D #9D872C #439D2C
monochromatic
#1F113D #361F6D #4E2C9D #673DC9 #8D6DD6

Accessibility & contrast

On white

9.67
#4E2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C9D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C9D#FFFFFF#000000##FFFFFF
##4E2C9D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#334961
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2c9d;
/* rgb */ color: rgb(78, 44, 157);
/* oklch */ color: oklch(40.7% 0.172 290.5);
Tailwind
colors: {
  custom: {
    50: '#8768bb',
    500: '#4e2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c9d;
$custom-light: #8768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c9d",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 258.053,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40722,
    "c": 0.1715,
    "h": 290.5
  },
  "luminance": 0.05855
}

Semantic roles & 50–950 ramp

primary
#4E2C9D
secondary
#A3BD68
accent
#E048B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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