#4E2D9A#4E2D9A

#4E2D9A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.167 H 291.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#4E2D9A
RGBrgb(78, 45, 154)
HSLhsl(258, 55%, 39%)
HSVhsv(258, 71%, 60%)
CMYKcmyk(49.4%, 70.8%, 0%, 39.6%)
CIE-LABlab(28.98, 41.48, -54.26)
CIE-LCHlch(28.98, 68.30, 307.39°)
OKLaboklab(40.59% 0.0597 -0.1556)
OKLCHoklch(40.59% 0.167 291)
XYZxyz(9.9114, 5.8292, 31.1685)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D9A #799A2D
analogous
#2D439A #4E2D9A #852D9A
triadic
#4E2D9A #9A4E2D #2D9A4E
tetradic
#4E2D9A #9A2D43 #799A2D #2D9A85
square
#4E2D9A #9A2D43 #799A2D #2D9A85
split-complementary
#4E2D9A #9A852D #439A2D
monochromatic
#1E113B #361F6B #4E2D9A #673EC7 #8C6DD4

Accessibility & contrast

On white

9.70
#4E2D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2D9A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D9A#FFFFFF#000000##FFFFFF
##4E2D9A1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2d9a;
/* rgb */ color: rgb(78, 45, 154);
/* oklch */ color: oklch(40.6% 0.167 291.0);
Tailwind
colors: {
  custom: {
    50: '#8769b9',
    500: '#4e2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d9a;
$custom-light: #8769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d9a",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 258.165,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40594,
    "c": 0.16665,
    "h": 291
  },
  "luminance": 0.0583
}

Semantic roles & 50–950 ramp

primary
#4E2D9A
secondary
#A2BB67
accent
#DE4AB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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