#4E2D79#4E2D79

#4E2D79 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.9% C 0.125 H 300.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#4E2D79
RGBrgb(78, 45, 121)
HSLhsl(266, 46%, 33%)
HSVhsv(266, 63%, 47%)
CMYKcmyk(35.5%, 62.8%, 0%, 52.5%)
CIE-LABlab(26.38, 32.07, -37.96)
CIE-LCHlch(26.38, 49.70, 310.19°)
OKLaboklab(37.91% 0.0636 -0.1077)
OKLCHoklch(37.91% 0.125 300.6)
XYZxyz(7.5306, 4.8769, 18.6300)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2D79 #58792D
analogous
#2D3279 #4E2D79 #742D79
triadic
#4E2D79 #794E2D #2D794E
tetradic
#4E2D79 #792D32 #58792D #2D7974
square
#4E2D79 #792D32 #58792D #2D7974
split-complementary
#4E2D79 #79742D #32792D
monochromatic
#140C20 #311C4C #4E2D79 #6B3EA6 #8A5DC3

Accessibility & contrast

On white

10.63
#4E2D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4E2D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2D79
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2D79#FFFFFF#000000##FFFFFF
##4E2D791.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7B
Deuteranopia (green-blind)
#143E77
Tritanopia (blue-blind)
#453D4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2d79;
/* rgb */ color: rgb(78, 45, 121);
/* oklch */ color: oklch(37.9% 0.125 300.6);
Tailwind
colors: {
  custom: {
    50: '#8368a0',
    500: '#4e2d79',
    950: '#000000',
  },
}
SCSS
$custom: #4e2d79;
$custom-light: #8368a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2d79",
  "rgb": {
    "r": 78,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 266.053,
    "s": 45.783,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37907,
    "c": 0.12504,
    "h": 300.6
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#4E2D79
secondary
#86A958
accent
#D5529D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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