#4E2279#4E2279

#4E2279 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.141 H 303.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#4E2279
RGBrgb(78, 34, 121)
HSLhsl(270, 56%, 30%)
HSVhsv(270, 72%, 47%)
CMYKcmyk(35.5%, 71.9%, 0%, 52.5%)
CIE-LABlab(24.14, 38.18, -41.58)
CIE-LCHlch(24.14, 56.45, 312.56°)
OKLaboklab(36.29% 0.0771 -0.1183)
OKLCHoklch(36.29% 0.141 303.1)
XYZxyz(7.1643, 4.1442, 18.5079)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2279 #4D7922
analogous
#232279 #4E2279 #792278
triadic
#4E2279 #794E22 #22794E
tetradic
#4E2279 #792322 #4D7922 #227879
square
#4E2279 #792322 #4D7922 #227879
split-complementary
#4E2279 #787922 #227923
monochromatic
#100719 #2F1549 #4E2279 #6D2FA9 #8B49CC

Accessibility & contrast

On white

11.48
#4E2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4E2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2279
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2279#FFFFFF#000000##FFFFFF
##4E22791.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003977
Tritanopia (blue-blind)
#45364B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2279;
/* rgb */ color: rgb(78, 34, 121);
/* oklch */ color: oklch(36.3% 0.141 303.1);
Tailwind
colors: {
  custom: {
    50: '#8461a0',
    500: '#4e2279',
    950: '#000000',
  },
}
SCSS
$custom: #4e2279;
$custom-light: #8461a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2279",
  "rgb": {
    "r": 78,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 270.345,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36292,
    "c": 0.1412,
    "h": 303.1
  },
  "luminance": 0.04144
}

Semantic roles & 50–950 ramp

primary
#4E2279
secondary
#7BAC4B
accent
#DF4893
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E2279

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

Preview Lab → · Contrast checker → · Palette generator →

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