#4E34A2#4E34A2

#4E34A2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.168 H 287.8°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4E34A2
RGBrgb(78, 52, 162)
HSLhsl(254, 51%, 42%)
HSVhsv(254, 68%, 64%)
CMYKcmyk(51.9%, 67.9%, 0%, 36.5%)
CIE-LABlab(31.08, 39.93, -55.70)
CIE-LCHlch(31.08, 68.53, 305.64°)
OKLaboklab(42.31% 0.0515 -0.1598)
OKLCHoklch(42.31% 0.168 287.8)
XYZxyz(10.8896, 6.6838, 34.8917)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A2 #88A234
analogous
#3451A2 #4E34A2 #8534A2
triadic
#4E34A2 #A24E34 #34A24E
tetradic
#4E34A2 #A23451 #88A234 #34A285
square
#4E34A2 #A23451 #88A234 #34A285
split-complementary
#4E34A2 #A28534 #51A234
monochromatic
#211645 #382574 #4E34A2 #6A4DC6 #917CD5

Accessibility & contrast

On white

8.99
#4E34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A2
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A2#FFFFFF#000000##FFFFFF
##4E34A21.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#2F5066
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e34a2;
/* rgb */ color: rgb(78, 52, 162);
/* oklch */ color: oklch(42.3% 0.168 287.8);
Tailwind
colors: {
  custom: {
    50: '#886dbe',
    500: '#4e34a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a2;
$custom-light: #886dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a2",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 254.182,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42308,
    "c": 0.16791,
    "h": 287.8
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#4E34A2
secondary
#ACBE74
accent
#DB4DB9
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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