#4E3974#4E3974

#4E3974 is a dark, moderate violet. Relative luminance 0.058; OKLCH L 39.7% C 0.098 H 298.2°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#4E3974
RGBrgb(78, 57, 116)
HSLhsl(261, 34%, 34%)
HSVhsv(261, 51%, 45%)
CMYKcmyk(32.8%, 50.9%, 0%, 54.5%)
CIE-LABlab(28.92, 23.26, -30.73)
CIE-LCHlch(28.92, 38.54, 307.12°)
OKLaboklab(39.68% 0.0465 -0.0865)
OKLCHoklch(39.68% 0.098 298.2)
XYZxyz(7.7566, 5.8068, 17.2318)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3974 #5F7439
analogous
#394274 #4E3974 #6C3974
triadic
#4E3974 #744E39 #39744E
tetradic
#4E3974 #743942 #5F7439 #39746C
square
#4E3974 #743942 #5F7439 #39746C
split-complementary
#4E3974 #746C39 #427439
monochromatic
#171122 #32254B #4E3974 #6A4D9D #896FB8

Accessibility & contrast

On white

9.72
#4E3974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E3974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3974
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3974#FFFFFF#000000##FFFFFF
##4E39741.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254476
Deuteranopia (green-blind)
#2A4473
Tritanopia (blue-blind)
#464451
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3974;
/* rgb */ color: rgb(78, 57, 116);
/* oklch */ color: oklch(39.7% 0.098 298.2);
Tailwind
colors: {
  custom: {
    50: '#82709c',
    500: '#4e3974',
    950: '#000000',
  },
}
SCSS
$custom: #4e3974;
$custom-light: #82709c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3974",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 116
  },
  "hsl": {
    "h": 261.356,
    "s": 34.104,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39676,
    "c": 0.09819,
    "h": 298.2
  },
  "luminance": 0.05807
}

Semantic roles & 50–950 ramp

primary
#4E3974
secondary
#8DA267
accent
#CA5EA4
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4E3974

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

Preview Lab → · Contrast checker → · Palette generator →

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