#4E34A0#4E34A0

#4E34A0 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.165 H 288.2°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4E34A0
RGBrgb(78, 52, 160)
HSLhsl(254, 51%, 42%)
HSVhsv(254, 68%, 63%)
CMYKcmyk(51.2%, 67.5%, 0%, 37.3%)
CIE-LABlab(30.91, 39.33, -54.76)
CIE-LCHlch(30.91, 67.42, 305.69°)
OKLaboklab(42.14% 0.0518 -0.1571)
OKLCHoklch(42.14% 0.165 288.2)
XYZxyz(10.7132, 6.6133, 33.9629)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A0 #86A034
analogous
#3450A0 #4E34A0 #8434A0
triadic
#4E34A0 #A04E34 #34A04E
tetradic
#4E34A0 #A03450 #86A034 #34A084
square
#4E34A0 #A03450 #86A034 #34A084
split-complementary
#4E34A0 #A08434 #50A034
monochromatic
#211644 #372572 #4E34A0 #694CC5 #907AD4

Accessibility & contrast

On white

9.04
#4E34A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E34A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A0
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A0#FFFFFF#000000##FFFFFF
##4E34A01.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#314F65
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e34a0;
/* rgb */ color: rgb(78, 52, 160);
/* oklch */ color: oklch(42.1% 0.165 288.2);
Tailwind
colors: {
  custom: {
    50: '#876dbd',
    500: '#4e34a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a0;
$custom-light: #876dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a0",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 160
  },
  "hsl": {
    "h": 254.444,
    "s": 50.943,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42137,
    "c": 0.16538,
    "h": 288.2
  },
  "luminance": 0.06614
}

Semantic roles & 50–950 ramp

primary
#4E34A0
secondary
#ABBD73
accent
#DA4DB8
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E34A0

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

Preview Lab → · Contrast checker → · Palette generator →

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