#4E3474#4E3474

#4E3474 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.7% C 0.107 H 300.2°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#4E3474
RGBrgb(78, 52, 116)
HSLhsl(264, 38%, 33%)
HSVhsv(264, 55%, 45%)
CMYKcmyk(32.8%, 55.2%, 0%, 54.5%)
CIE-LABlab(27.67, 26.42, -32.72)
CIE-LCHlch(27.67, 42.05, 308.92°)
OKLaboklab(38.75% 0.0538 -0.0923)
OKLCHoklch(38.75% 0.107 300.2)
XYZxyz(7.5215, 5.3366, 17.1534)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3474 #5A7434
analogous
#343A74 #4E3474 #6E3474
triadic
#4E3474 #744E34 #34744E
tetradic
#4E3474 #74343A #5A7434 #34746E
square
#4E3474 #74343A #5A7434 #34746E
split-complementary
#4E3474 #746E34 #3A7434
monochromatic
#150E1F #32214A #4E3474 #6A479E #8967BB

Accessibility & contrast

On white

10.16
#4E3474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4E3474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3474
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3474#FFFFFF#000000##FFFFFF
##4E34741.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4176
Deuteranopia (green-blind)
#244172
Tritanopia (blue-blind)
#46404E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e3474;
/* rgb */ color: rgb(78, 52, 116);
/* oklch */ color: oklch(38.7% 0.107 300.2);
Tailwind
colors: {
  custom: {
    50: '#826c9c',
    500: '#4e3474',
    950: '#000000',
  },
}
SCSS
$custom: #4e3474;
$custom-light: #826c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3474",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 116
  },
  "hsl": {
    "h": 264.375,
    "s": 38.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38748,
    "c": 0.10684,
    "h": 300.2
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#4E3474
secondary
#88A361
accent
#CE5A9F
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3474

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

Preview Lab → · Contrast checker → · Palette generator →

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