#4E2691#4E2691

#4E2691 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.164 H 294.6°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4E2691
RGBrgb(78, 38, 145)
HSLhsl(262, 58%, 36%)
HSVhsv(262, 74%, 57%)
CMYKcmyk(46.2%, 73.8%, 0%, 43.1%)
CIE-LABlab(26.88, 42.61, -52.17)
CIE-LCHlch(26.88, 67.36, 309.24°)
OKLaboklab(38.86% 0.0683 -0.1494)
OKLCHoklch(38.86% 0.164 294.6)
XYZxyz(8.9444, 5.0500, 27.2861)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2691 #699126
analogous
#263391 #4E2691 #832691
triadic
#4E2691 #914E26 #26914E
tetradic
#4E2691 #912633 #699126 #269183
square
#4E2691 #912633 #699126 #269183
split-complementary
#4E2691 #918326 #339126
monochromatic
#1A0D30 #341961 #4E2691 #6833C1 #8A5DD5

Accessibility & contrast

On white

10.45
#4E2691 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4E2691 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2691
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2691#FFFFFF#000000##FFFFFF
##4E26911.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2691;
/* rgb */ color: rgb(78, 38, 145);
/* oklch */ color: oklch(38.9% 0.164 294.6);
Tailwind
colors: {
  custom: {
    50: '#8664b2',
    500: '#4e2691',
    950: '#000000',
  },
}
SCSS
$custom: #4e2691;
$custom-light: #8664b2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2691",
  "rgb": {
    "r": 78,
    "g": 38,
    "b": 145
  },
  "hsl": {
    "h": 262.43,
    "s": 58.47,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3886,
    "c": 0.16427,
    "h": 294.6
  },
  "luminance": 0.0505
}

Semantic roles & 50–950 ramp

primary
#4E2691
secondary
#96BA59
accent
#E246A8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2691

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

Preview Lab → · Contrast checker → · Palette generator →

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