#4E2799#4E2799

#4E2799 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.173 H 292.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#4E2799
RGBrgb(78, 39, 153)
HSLhsl(261, 59%, 38%)
HSVhsv(261, 75%, 60%)
CMYKcmyk(49%, 74.5%, 0%, 40%)
CIE-LABlab(27.76, 44.34, -55.63)
CIE-LCHlch(27.76, 71.14, 308.55°)
OKLaboklab(39.71% 0.0655 -0.1596)
OKLCHoklch(39.71% 0.173 292.3)
XYZxyz(9.6156, 5.3703, 30.6608)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2799 #729927
analogous
#273999 #4E2799 #872799
triadic
#4E2799 #994E27 #27994E
tetradic
#4E2799 #992739 #729927 #279987
square
#4E2799 #992739 #729927 #279987
split-complementary
#4E2799 #998727 #399927
monochromatic
#1C0E37 #351B68 #4E2799 #6733CA #8B63D7

Accessibility & contrast

On white

10.12
#4E2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2799
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2799#FFFFFF#000000##FFFFFF
##4E27991.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#36455E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4e2799;
/* rgb */ color: rgb(78, 39, 153);
/* oklch */ color: oklch(39.7% 0.173 292.3);
Tailwind
colors: {
  custom: {
    50: '#8765b8',
    500: '#4e2799',
    950: '#000000',
  },
}
SCSS
$custom: #4e2799;
$custom-light: #8765b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2799",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 260.526,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39707,
    "c": 0.17251,
    "h": 292.3
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#4E2799
secondary
#9DBD5F
accent
#E345AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4E2799

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

Preview Lab → · Contrast checker → · Palette generator →

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