#4E3976#4E3976

#4E3976 is a dark, moderate violet. Relative luminance 0.059; OKLCH L 39.8% C 0.101 H 297.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4E3976
RGBrgb(78, 57, 118)
HSLhsl(261, 35%, 34%)
HSVhsv(261, 52%, 46%)
CMYKcmyk(33.9%, 51.7%, 0%, 53.7%)
CIE-LABlab(29.04, 23.83, -31.81)
CIE-LCHlch(29.04, 39.74, 306.84°)
OKLaboklab(39.81% 0.0467 -0.0896)
OKLCHoklch(39.81% 0.101 297.5)
XYZxyz(7.8742, 5.8539, 17.8511)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3976 #617639
analogous
#394376 #4E3976 #6D3976
triadic
#4E3976 #764E39 #39764E
tetradic
#4E3976 #763943 #617639 #39766D
square
#4E3976 #763943 #617639 #39766D
split-complementary
#4E3976 #766D39 #437639
monochromatic
#171123 #33254D #4E3976 #694D9F #8970BA

Accessibility & contrast

On white

9.67
#4E3976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E3976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3976
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3976#FFFFFF#000000##FFFFFF
##4E39761.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244578
Deuteranopia (green-blind)
#294475
Tritanopia (blue-blind)
#454552
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3976;
/* rgb */ color: rgb(78, 57, 118);
/* oklch */ color: oklch(39.8% 0.101 297.5);
Tailwind
colors: {
  custom: {
    50: '#82709e',
    500: '#4e3976',
    950: '#000000',
  },
}
SCSS
$custom: #4e3976;
$custom-light: #82709e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3976",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 118
  },
  "hsl": {
    "h": 260.656,
    "s": 34.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39806,
    "c": 0.10107,
    "h": 297.5
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#4E3976
secondary
#8FA368
accent
#CB5DA5
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3976

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

Preview Lab → · Contrast checker → · Palette generator →

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