#4E2C9A#4E2C9A

#4E2C9A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.168 H 291.2°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4E2C9A
RGBrgb(78, 44, 154)
HSLhsl(259, 56%, 39%)
HSVhsv(259, 71%, 60%)
CMYKcmyk(49.4%, 71.4%, 0%, 39.6%)
CIE-LABlab(28.78, 42.02, -54.58)
CIE-LCHlch(28.78, 68.88, 307.59°)
OKLaboklab(40.46% 0.0606 -0.1565)
OKLCHoklch(40.46% 0.168 291.2)
XYZxyz(9.8737, 5.7538, 31.1559)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2C9A #789A2C
analogous
#2C419A #4E2C9A #852C9A
triadic
#4E2C9A #9A4E2C #2C9A4E
tetradic
#4E2C9A #9A2C41 #789A2C #2C9A85
square
#4E2C9A #9A2C41 #789A2C #2C9A85
split-complementary
#4E2C9A #9A852C #419A2C
monochromatic
#1E113B #361E6A #4E2C9A #673CC7 #8C6CD5

Accessibility & contrast

On white

9.76
#4E2C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E2C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2C9A
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2C9A#FFFFFF#000000##FFFFFF
##4E2C9A1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#354860
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2c9a;
/* rgb */ color: rgb(78, 44, 154);
/* oklch */ color: oklch(40.5% 0.168 291.2);
Tailwind
colors: {
  custom: {
    50: '#8768b9',
    500: '#4e2c9a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2c9a;
$custom-light: #8768b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2c9a",
  "rgb": {
    "r": 78,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 258.545,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40456,
    "c": 0.16786,
    "h": 291.2
  },
  "luminance": 0.05754
}

Semantic roles & 50–950 ramp

primary
#4E2C9A
secondary
#A1BC66
accent
#DF49B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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