#4E2791#4E2791

#4E2791 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.163 H 294.4°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#4E2791
RGBrgb(78, 39, 145)
HSLhsl(262, 58%, 36%)
HSVhsv(262, 73%, 57%)
CMYKcmyk(46.2%, 73.1%, 0%, 43.1%)
CIE-LABlab(27.06, 42.10, -51.87)
CIE-LCHlch(27.06, 66.80, 309.07°)
OKLaboklab(38.99% 0.0673 -0.1485)
OKLCHoklch(38.99% 0.163 294.4)
XYZxyz(8.9769, 5.1148, 27.2969)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2791 #6A9127
analogous
#273591 #4E2791 #832791
triadic
#4E2791 #914E27 #27914E
tetradic
#4E2791 #912735 #6A9127 #279183
square
#4E2791 #912735 #6A9127 #279183
split-complementary
#4E2791 #918327 #359127
monochromatic
#1A0D31 #341A61 #4E2791 #6834C1 #8A5FD4

Accessibility & contrast

On white

10.38
#4E2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2791
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2791#FFFFFF#000000##FFFFFF
##4E27911.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#003E8F
Tritanopia (blue-blind)
#3B4259
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e2791;
/* rgb */ color: rgb(78, 39, 145);
/* oklch */ color: oklch(39.0% 0.163 294.4);
Tailwind
colors: {
  custom: {
    50: '#8665b2',
    500: '#4e2791',
    950: '#000000',
  },
}
SCSS
$custom: #4e2791;
$custom-light: #8665b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2791",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 262.075,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3899,
    "c": 0.16308,
    "h": 294.4
  },
  "luminance": 0.05115
}

Semantic roles & 50–950 ramp

primary
#4E2791
secondary
#96B95B
accent
#E147A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2791

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

Preview Lab → · Contrast checker → · Palette generator →

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