#4E34AC#4E34AC

#4E34AC is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.180 H 286.0°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#4E34AC
RGBrgb(78, 52, 172)
HSLhsl(253, 54%, 44%)
HSVhsv(253, 70%, 67%)
CMYKcmyk(54.7%, 69.8%, 0%, 32.5%)
CIE-LABlab(31.93, 42.94, -60.32)
CIE-LCHlch(31.93, 74.04, 305.45°)
OKLaboklab(43.18% 0.0498 -0.1734)
OKLCHoklch(43.18% 0.18 286)
XYZxyz(11.8140, 7.0536, 39.7607)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34AC #92AC34
analogous
#3456AC #4E34AC #8A34AC
triadic
#4E34AC #AC4E34 #34AC4E
tetradic
#4E34AC #AC3456 #92AC34 #34AC8A
square
#4E34AC #AC3456 #92AC34 #34AC8A
split-complementary
#4E34AC #AC8A34 #56AC34
monochromatic
#23184E #39267D #4E34AC #6C52CB #9481D9

Accessibility & contrast

On white

8.71
#4E34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34AC
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34AC#FFFFFF#000000##FFFFFF
##4E34AC1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#26536C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e34ac;
/* rgb */ color: rgb(78, 52, 172);
/* oklch */ color: oklch(43.2% 0.180 286.0);
Tailwind
colors: {
  custom: {
    50: '#896ec6',
    500: '#4e34ac',
    950: '#000000',
  },
}
SCSS
$custom: #4e34ac;
$custom-light: #896ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34ac",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 253,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43184,
    "c": 0.18042,
    "h": 286
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#4E34AC
secondary
#B3C279
accent
#DD4BBD
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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