#4E2979#4E2979

#4E2979 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.3% C 0.131 H 301.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4E2979
RGBrgb(78, 41, 121)
HSLhsl(268, 49%, 32%)
HSVhsv(268, 66%, 47%)
CMYKcmyk(35.5%, 66.1%, 0%, 52.5%)
CIE-LABlab(25.52, 34.39, -39.35)
CIE-LCHlch(25.52, 52.26, 311.15°)
OKLaboklab(37.28% 0.0687 -0.1117)
OKLCHoklch(37.28% 0.131 301.6)
XYZxyz(7.3852, 4.5860, 18.5816)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2979 #547929
analogous
#292C79 #4E2979 #762979
triadic
#4E2979 #794E29 #29794E
tetradic
#4E2979 #79292C #547929 #297976
square
#4E2979 #79292C #547929 #297976
split-complementary
#4E2979 #797629 #2C7929
monochromatic
#130A1E #311A4B #4E2979 #6B38A7 #8A56C6

Accessibility & contrast

On white

10.95
#4E2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E2979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2979
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2979#FFFFFF#000000##FFFFFF
##4E29791.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7B
Deuteranopia (green-blind)
#0B3C77
Tritanopia (blue-blind)
#453A4D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2979;
/* rgb */ color: rgb(78, 41, 121);
/* oklch */ color: oklch(37.3% 0.131 301.6);
Tailwind
colors: {
  custom: {
    50: '#8365a0',
    500: '#4e2979',
    950: '#000000',
  },
}
SCSS
$custom: #4e2979;
$custom-light: #8365a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2979",
  "rgb": {
    "r": 78,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 267.75,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37282,
    "c": 0.13119,
    "h": 301.6
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#4E2979
secondary
#82AB53
accent
#D94F99
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2979

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

Preview Lab → · Contrast checker → · Palette generator →

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