#4E3979#4E3979

#4E3979 is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.0% C 0.105 H 296.5°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4E3979
RGBrgb(78, 57, 121)
HSLhsl(260, 36%, 35%)
HSVhsv(260, 53%, 47%)
CMYKcmyk(35.5%, 52.9%, 0%, 52.5%)
CIE-LABlab(29.23, 24.69, -33.40)
CIE-LCHlch(29.23, 41.54, 306.47°)
OKLaboklab(40% 0.047 -0.0943)
OKLCHoklch(40% 0.105 296.5)
XYZxyz(8.0553, 5.9263, 18.8049)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3979 #647939
analogous
#394479 #4E3979 #6E3979
triadic
#4E3979 #794E39 #39794E
tetradic
#4E3979 #793944 #647939 #39796E
square
#4E3979 #793944 #647939 #39796E
split-complementary
#4E3979 #796E39 #447939
monochromatic
#181226 #33254F #4E3979 #694DA3 #8971BC

Accessibility & contrast

On white

9.61
#4E3979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E3979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3979
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3979#FFFFFF#000000##FFFFFF
##4E39791.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457B
Deuteranopia (green-blind)
#264477
Tritanopia (blue-blind)
#444553
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3979;
/* rgb */ color: rgb(78, 57, 121);
/* oklch */ color: oklch(40.0% 0.105 296.5);
Tailwind
colors: {
  custom: {
    50: '#8270a0',
    500: '#4e3979',
    950: '#000000',
  },
}
SCSS
$custom: #4e3979;
$custom-light: #8270a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3979",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 121
  },
  "hsl": {
    "h": 259.688,
    "s": 35.955,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40004,
    "c": 0.10537,
    "h": 296.5
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#4E3979
secondary
#91A569
accent
#CC5CA7
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4E3979

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

Preview Lab → · Contrast checker → · Palette generator →

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