#4E2796#4E2796

#4E2796 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.169 H 293.1°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#4E2796
RGBrgb(78, 39, 150)
HSLhsl(261, 59%, 37%)
HSVhsv(261, 74%, 59%)
CMYKcmyk(48%, 74%, 0%, 41.2%)
CIE-LABlab(27.50, 43.50, -54.23)
CIE-LCHlch(27.50, 69.52, 308.73°)
OKLaboklab(39.43% 0.0662 -0.1555)
OKLCHoklch(39.43% 0.169 293.1)
XYZxyz(9.3709, 5.2724, 29.3722)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2796 #6F9627
analogous
#273896 #4E2796 #862796
triadic
#4E2796 #964E27 #27964E
tetradic
#4E2796 #962738 #6F9627 #279686
square
#4E2796 #962738 #6F9627 #279686
split-complementary
#4E2796 #968627 #389627
monochromatic
#1B0E35 #351A65 #4E2796 #6734C7 #8A61D6

Accessibility & contrast

On white

10.22
#4E2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2796
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2796#FFFFFF#000000##FFFFFF
##4E27961.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#003F94
Tritanopia (blue-blind)
#38445C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2796;
/* rgb */ color: rgb(78, 39, 150);
/* oklch */ color: oklch(39.4% 0.169 293.1);
Tailwind
colors: {
  custom: {
    50: '#8765b6',
    500: '#4e2796',
    950: '#000000',
  },
}
SCSS
$custom: #4e2796;
$custom-light: #8765b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2796",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 261.081,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39435,
    "c": 0.16899,
    "h": 293.1
  },
  "luminance": 0.05273
}

Semantic roles & 50–950 ramp

primary
#4E2796
secondary
#9ABC5D
accent
#E246AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2796

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

Preview Lab → · Contrast checker → · Palette generator →

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