#4E2A79#4E2A79

#4E2A79 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.4% C 0.130 H 301.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2A79
RGBrgb(78, 42, 121)
HSLhsl(267, 48%, 32%)
HSVhsv(267, 65%, 47%)
CMYKcmyk(35.5%, 65.3%, 0%, 52.5%)
CIE-LABlab(25.73, 33.82, -39.01)
CIE-LCHlch(25.73, 51.63, 310.92°)
OKLaboklab(37.44% 0.0675 -0.1107)
OKLCHoklch(37.44% 0.13 301.3)
XYZxyz(7.4202, 4.6561, 18.5932)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A79 #55792A
analogous
#2A2E79 #4E2A79 #762A79
triadic
#4E2A79 #794E2A #2A794E
tetradic
#4E2A79 #792A2E #55792A #2A7976
square
#4E2A79 #792A2E #55792A #2A7976
split-complementary
#4E2A79 #79762A #2E792A
monochromatic
#130A1E #311A4C #4E2A79 #6B3AA6 #8A58C5

Accessibility & contrast

On white

10.87
#4E2A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4E2A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A79
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A79#FFFFFF#000000##FFFFFF
##4E2A791.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#0E3D77
Tritanopia (blue-blind)
#453B4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e2a79;
/* rgb */ color: rgb(78, 42, 121);
/* oklch */ color: oklch(37.4% 0.130 301.3);
Tailwind
colors: {
  custom: {
    50: '#8366a0',
    500: '#4e2a79',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a79;
$custom-light: #8366a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a79",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 121
  },
  "hsl": {
    "h": 267.342,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.12967,
    "h": 301.3
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#4E2A79
secondary
#83AB54
accent
#D8509A
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2A79

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

Preview Lab → · Contrast checker → · Palette generator →

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