#4E2795#4E2795

#4E2795 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.168 H 293.3°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#4E2795
RGBrgb(78, 39, 149)
HSLhsl(261, 59%, 37%)
HSVhsv(261, 74%, 58%)
CMYKcmyk(47.7%, 73.8%, 0%, 41.6%)
CIE-LABlab(27.41, 43.22, -53.76)
CIE-LCHlch(27.41, 68.98, 308.79°)
OKLaboklab(39.35% 0.0664 -0.1541)
OKLCHoklch(39.35% 0.168 293.3)
XYZxyz(9.2907, 5.2404, 28.9499)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2795 #6E9527
analogous
#273795 #4E2795 #852795
triadic
#4E2795 #954E27 #27954E
tetradic
#4E2795 #952737 #6E9527 #279585
square
#4E2795 #952737 #6E9527 #279585
split-complementary
#4E2795 #958527 #379527
monochromatic
#1B0E34 #351A64 #4E2795 #6734C6 #8A61D6

Accessibility & contrast

On white

10.25
#4E2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2795
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2795#FFFFFF#000000##FFFFFF
##4E27951.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004298
Deuteranopia (green-blind)
#003F93
Tritanopia (blue-blind)
#39445B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e2795;
/* rgb */ color: rgb(78, 39, 149);
/* oklch */ color: oklch(39.3% 0.168 293.3);
Tailwind
colors: {
  custom: {
    50: '#8765b5',
    500: '#4e2795',
    950: '#000000',
  },
}
SCSS
$custom: #4e2795;
$custom-light: #8765b5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2795",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 261.273,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39345,
    "c": 0.16781,
    "h": 293.3
  },
  "luminance": 0.05241
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2795

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

Preview Lab → · Contrast checker → · Palette generator →

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