#4E2798#4E2798

#4E2798 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.171 H 292.6°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4E2798
RGBrgb(78, 39, 152)
HSLhsl(261, 59%, 37%)
HSVhsv(261, 74%, 60%)
CMYKcmyk(48.7%, 74.3%, 0%, 40.4%)
CIE-LABlab(27.68, 44.06, -55.17)
CIE-LCHlch(27.68, 70.60, 308.61°)
OKLaboklab(39.62% 0.0657 -0.1582)
OKLCHoklch(39.62% 0.171 292.6)
XYZxyz(9.5333, 5.3374, 30.2276)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2798 #719827
analogous
#273998 #4E2798 #862798
triadic
#4E2798 #984E27 #27984E
tetradic
#4E2798 #982739 #719827 #279886
square
#4E2798 #982739 #719827 #279886
split-complementary
#4E2798 #988627 #399827
monochromatic
#1C0E37 #351B67 #4E2798 #6733C9 #8B63D7

Accessibility & contrast

On white

10.16
#4E2798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E2798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2798
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2798#FFFFFF#000000##FFFFFF
##4E27981.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#37455D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2798;
/* rgb */ color: rgb(78, 39, 152);
/* oklch */ color: oklch(39.6% 0.171 292.6);
Tailwind
colors: {
  custom: {
    50: '#8765b7',
    500: '#4e2798',
    950: '#000000',
  },
}
SCSS
$custom: #4e2798;
$custom-light: #8765b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2798",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 260.708,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39616,
    "c": 0.17134,
    "h": 292.6
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#4E2798
secondary
#9CBC5E
accent
#E245AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2798

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

Preview Lab → · Contrast checker → · Palette generator →

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