#4E3471#4E3471

#4E3471 is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.5% C 0.103 H 301.4°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#4E3471
RGBrgb(78, 52, 113)
HSLhsl(266, 37%, 32%)
HSVhsv(266, 54%, 44%)
CMYKcmyk(31%, 54%, 0%, 55.7%)
CIE-LABlab(27.48, 25.58, -31.11)
CIE-LCHlch(27.48, 40.28, 309.43°)
OKLaboklab(38.55% 0.0536 -0.0876)
OKLCHoklch(38.55% 0.103 301.4)
XYZxyz(7.3498, 5.2679, 16.2492)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3471 #577134
analogous
#343871 #4E3471 #6D3471
triadic
#4E3471 #714E34 #34714E
tetradic
#4E3471 #713438 #577134 #34716D
square
#4E3471 #713438 #577134 #34716D
split-complementary
#4E3471 #716D34 #387134
monochromatic
#140D1D #312147 #4E3471 #6B479B #8A67B9

Accessibility & contrast

On white

10.23
#4E3471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4E3471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3471
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3471#FFFFFF#000000##FFFFFF
##4E34711.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4173
Deuteranopia (green-blind)
#274170
Tritanopia (blue-blind)
#473F4D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4e3471;
/* rgb */ color: rgb(78, 52, 113);
/* oklch */ color: oklch(38.5% 0.103 301.4);
Tailwind
colors: {
  custom: {
    50: '#826c9a',
    500: '#4e3471',
    950: '#000000',
  },
}
SCSS
$custom: #4e3471;
$custom-light: #826c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3471",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 113
  },
  "hsl": {
    "h": 265.574,
    "s": 36.97,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38548,
    "c": 0.10268,
    "h": 301.4
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#4E3471
secondary
#85A160
accent
#CD5B9C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A070E
muted
#7C7A7E

Preview Lab

Preview with #4E3471

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

Preview Lab → · Contrast checker → · Palette generator →

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