#4E3472#4E3472

#4E3472 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.6% C 0.104 H 301.0°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#4E3472
RGBrgb(78, 52, 114)
HSLhsl(265, 37%, 33%)
HSVhsv(265, 54%, 45%)
CMYKcmyk(31.6%, 54.4%, 0%, 55.3%)
CIE-LABlab(27.55, 25.86, -31.65)
CIE-LCHlch(27.55, 40.87, 309.25°)
OKLaboklab(38.61% 0.0536 -0.0892)
OKLCHoklch(38.61% 0.104 301)
XYZxyz(7.4064, 5.2906, 16.5473)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3472 #587234
analogous
#343972 #4E3472 #6D3472
triadic
#4E3472 #724E34 #34724E
tetradic
#4E3472 #723439 #587234 #34726D
square
#4E3472 #723439 #587234 #34726D
split-complementary
#4E3472 #726D34 #397234
monochromatic
#140E1E #312148 #4E3472 #6B479C #8A67BA

Accessibility & contrast

On white

10.20
#4E3472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4E3472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3472
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3472#FFFFFF#000000##FFFFFF
##4E34721.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4174
Deuteranopia (green-blind)
#264171
Tritanopia (blue-blind)
#47404E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e3472;
/* rgb */ color: rgb(78, 52, 114);
/* oklch */ color: oklch(38.6% 0.104 301.0);
Tailwind
colors: {
  custom: {
    50: '#826c9b',
    500: '#4e3472',
    950: '#000000',
  },
}
SCSS
$custom: #4e3472;
$custom-light: #826c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3472",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 114
  },
  "hsl": {
    "h": 265.161,
    "s": 37.349,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38614,
    "c": 0.10406,
    "h": 301
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#4E3472
secondary
#86A260
accent
#CD5A9D
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070E
muted
#7C7A7E

Preview Lab

Preview with #4E3472

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

Preview Lab → · Contrast checker → · Palette generator →

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