#4E34A4#4E34A4

#4E34A4 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.170 H 287.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#4E34A4
RGBrgb(78, 52, 164)
HSLhsl(254, 52%, 42%)
HSVhsv(254, 68%, 64%)
CMYKcmyk(52.4%, 68.3%, 0%, 35.7%)
CIE-LABlab(31.24, 40.53, -56.63)
CIE-LCHlch(31.24, 69.64, 305.59°)
OKLaboklab(42.48% 0.0512 -0.1626)
OKLCHoklch(42.48% 0.17 287.5)
XYZxyz(11.0687, 6.7555, 35.8355)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A4 #8AA434
analogous
#3452A4 #4E34A4 #8634A4
triadic
#4E34A4 #A44E34 #34A44E
tetradic
#4E34A4 #A43452 #8AA434 #34A486
square
#4E34A4 #A43452 #8AA434 #34A486
split-complementary
#4E34A4 #A48634 #52A434
monochromatic
#221747 #382576 #4E34A4 #6A4EC7 #917DD6

Accessibility & contrast

On white

8.93
#4E34A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E34A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A4
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A4#FFFFFF#000000##FFFFFF
##4E34A41.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0046A2
Tritanopia (blue-blind)
#2D5067
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e34a4;
/* rgb */ color: rgb(78, 52, 164);
/* oklch */ color: oklch(42.5% 0.170 287.5);
Tailwind
colors: {
  custom: {
    50: '#886dc0',
    500: '#4e34a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a4;
$custom-light: #886dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a4",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 164
  },
  "hsl": {
    "h": 253.929,
    "s": 51.852,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42481,
    "c": 0.17043,
    "h": 287.5
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#4E34A4
secondary
#AEBF75
accent
#DB4CBA
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E34A4

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

Preview Lab → · Contrast checker → · Palette generator →

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