#4E34A9#4E34A9

#4E34A9 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.177 H 286.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#4E34A9
RGBrgb(78, 52, 169)
HSLhsl(253, 53%, 43%)
HSVhsv(253, 69%, 66%)
CMYKcmyk(53.8%, 69.2%, 0%, 33.7%)
CIE-LABlab(31.67, 42.04, -58.94)
CIE-LCHlch(31.67, 72.40, 305.50°)
OKLaboklab(42.92% 0.0504 -0.1694)
OKLCHoklch(42.92% 0.177 286.6)
XYZxyz(11.5292, 6.9397, 38.2604)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A9 #8FA934
analogous
#3455A9 #4E34A9 #8834A9
triadic
#4E34A9 #A94E34 #34A94E
tetradic
#4E34A9 #A93455 #8FA934 #34A988
square
#4E34A9 #A93455 #8FA934 #34A988
split-complementary
#4E34A9 #A98834 #55A934
monochromatic
#23174B #38267A #4E34A9 #6C51C9 #9380D8

Accessibility & contrast

On white

8.79
#4E34A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4E34A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A9
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A9#FFFFFF#000000##FFFFFF
##4E34A91.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAD
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#29526A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e34a9;
/* rgb */ color: rgb(78, 52, 169);
/* oklch */ color: oklch(42.9% 0.177 286.6);
Tailwind
colors: {
  custom: {
    50: '#896ec4',
    500: '#4e34a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a9;
$custom-light: #896ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a9",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 169
  },
  "hsl": {
    "h": 253.333,
    "s": 52.941,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42918,
    "c": 0.17669,
    "h": 286.6
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#4E34A9
secondary
#B1C178
accent
#DC4BBC
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E34A9

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

Preview Lab → · Contrast checker → · Palette generator →

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