#4E2991#4E2991

#4E2991 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.161 H 294.0°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4E2991
RGBrgb(78, 41, 145)
HSLhsl(261, 56%, 36%)
HSVhsv(261, 72%, 57%)
CMYKcmyk(46.2%, 71.7%, 0%, 43.1%)
CIE-LABlab(27.43, 41.05, -51.26)
CIE-LCHlch(27.43, 65.67, 308.69°)
OKLaboklab(39.26% 0.0653 -0.1468)
OKLCHoklch(39.26% 0.161 294)
XYZxyz(9.0443, 5.2497, 27.3193)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2991 #6C9129
analogous
#293891 #4E2991 #822991
triadic
#4E2991 #914E29 #29914E
tetradic
#4E2991 #912938 #6C9129 #299182
square
#4E2991 #912938 #6C9129 #299182
split-complementary
#4E2991 #918229 #389129
monochromatic
#1B0E32 #341C61 #4E2991 #6836C1 #8A62D3

Accessibility & contrast

On white

10.24
#4E2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2991
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2991#FFFFFF#000000##FFFFFF
##4E29911.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#3B435A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2991;
/* rgb */ color: rgb(78, 41, 145);
/* oklch */ color: oklch(39.3% 0.161 294.0);
Tailwind
colors: {
  custom: {
    50: '#8666b2',
    500: '#4e2991',
    950: '#000000',
  },
}
SCSS
$custom: #4e2991;
$custom-light: #8666b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2991",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 261.346,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39256,
    "c": 0.16064,
    "h": 294
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

primary
#4E2991
secondary
#98B85D
accent
#DF49AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2991

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

Preview Lab → · Contrast checker → · Palette generator →

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