#4E3174#4E3174

#4E3174 is a dark, moderate violet. Relative luminance 0.051; OKLCH L 38.2% C 0.112 H 301.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4E3174
RGBrgb(78, 49, 116)
HSLhsl(266, 41%, 32%)
HSVhsv(266, 58%, 45%)
CMYKcmyk(32.8%, 57.8%, 0%, 54.5%)
CIE-LABlab(26.95, 28.28, -33.87)
CIE-LCHlch(26.95, 44.12, 309.86°)
OKLaboklab(38.22% 0.0581 -0.0957)
OKLCHoklch(38.22% 0.112 301.3)
XYZxyz(7.3918, 5.0773, 17.1102)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3174 #577431
analogous
#313674 #4E3174 #6F3174
triadic
#4E3174 #744E31 #31744E
tetradic
#4E3174 #743136 #577431 #31746F
square
#4E3174 #743136 #577431 #31746F
split-complementary
#4E3174 #746F31 #367431
monochromatic
#140D1E #311F49 #4E3174 #6B439F #8A63BD

Accessibility & contrast

On white

10.42
#4E3174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4E3174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3174
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3174#FFFFFF#000000##FFFFFF
##4E31741.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F76
Deuteranopia (green-blind)
#203F72
Tritanopia (blue-blind)
#463E4D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4e3174;
/* rgb */ color: rgb(78, 49, 116);
/* oklch */ color: oklch(38.2% 0.112 301.3);
Tailwind
colors: {
  custom: {
    50: '#826a9c',
    500: '#4e3174',
    950: '#000000',
  },
}
SCSS
$custom: #4e3174;
$custom-light: #826a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3174",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 116
  },
  "hsl": {
    "h": 265.97,
    "s": 40.606,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38217,
    "c": 0.11193,
    "h": 301.3
  },
  "luminance": 0.05077
}

Semantic roles & 50–950 ramp

primary
#4E3174
secondary
#85A45C
accent
#D0579C
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E3174

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

Preview Lab → · Contrast checker → · Palette generator →

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