#4E34A7#4E34A7

#4E34A7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.174 H 286.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#4E34A7
RGBrgb(78, 52, 167)
HSLhsl(254, 53%, 43%)
HSVhsv(254, 69%, 65%)
CMYKcmyk(53.3%, 68.9%, 0%, 34.5%)
CIE-LABlab(31.50, 41.44, -58.02)
CIE-LCHlch(31.50, 71.30, 305.53°)
OKLaboklab(42.74% 0.0507 -0.1667)
OKLCHoklch(42.74% 0.174 286.9)
XYZxyz(11.3429, 6.8651, 37.2791)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A7 #8DA734
analogous
#3454A7 #4E34A7 #8734A7
triadic
#4E34A7 #A74E34 #34A74E
tetradic
#4E34A7 #A73454 #8DA734 #34A787
square
#4E34A7 #A73454 #8DA734 #34A787
split-complementary
#4E34A7 #A78734 #54A734
monochromatic
#22174A #382578 #4E34A7 #6B50C8 #927ED7

Accessibility & contrast

On white

8.85
#4E34A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E34A7
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A7#FFFFFF#000000##FFFFFF
##4E34A71.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#2B5169
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e34a7;
/* rgb */ color: rgb(78, 52, 167);
/* oklch */ color: oklch(42.7% 0.174 286.9);
Tailwind
colors: {
  custom: {
    50: '#886dc2',
    500: '#4e34a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a7;
$custom-light: #886dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a7",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 167
  },
  "hsl": {
    "h": 253.565,
    "s": 52.511,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42742,
    "c": 0.1742,
    "h": 286.9
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E34A7

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

Preview Lab → · Contrast checker → · Palette generator →

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