#4E34A6#4E34A6

#4E34A6 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.173 H 287.1°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4E34A6
RGBrgb(78, 52, 166)
HSLhsl(254, 52%, 43%)
HSVhsv(254, 69%, 65%)
CMYKcmyk(53%, 68.7%, 0%, 34.9%)
CIE-LABlab(31.41, 41.13, -57.56)
CIE-LCHlch(31.41, 70.75, 305.55°)
OKLaboklab(42.66% 0.0509 -0.1653)
OKLCHoklch(42.66% 0.173 287.1)
XYZxyz(11.2508, 6.8283, 36.7942)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A6 #8CA634
analogous
#3453A6 #4E34A6 #8734A6
triadic
#4E34A6 #A64E34 #34A64E
tetradic
#4E34A6 #A63453 #8CA634 #34A687
square
#4E34A6 #A63453 #8CA634 #34A687
split-complementary
#4E34A6 #A68734 #53A634
monochromatic
#221749 #382577 #4E34A6 #6B4FC8 #927ED7

Accessibility & contrast

On white

8.88
#4E34A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4E34A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A6
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A6#FFFFFF#000000##FFFFFF
##4E34A61.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#2C5169
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e34a6;
/* rgb */ color: rgb(78, 52, 166);
/* oklch */ color: oklch(42.7% 0.173 287.1);
Tailwind
colors: {
  custom: {
    50: '#886dc1',
    500: '#4e34a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a6;
$custom-light: #886dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a6",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 166
  },
  "hsl": {
    "h": 253.684,
    "s": 52.294,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.17294,
    "h": 287.1
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#4E34A6
secondary
#AFC076
accent
#DC4CBB
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E34A6

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

Preview Lab → · Contrast checker → · Palette generator →

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