#4E34A5#4E34A5

#4E34A5 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.172 H 287.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#4E34A5
RGBrgb(78, 52, 165)
HSLhsl(254, 52%, 43%)
HSVhsv(254, 68%, 65%)
CMYKcmyk(52.7%, 68.5%, 0%, 35.3%)
CIE-LABlab(31.33, 40.83, -57.10)
CIE-LCHlch(31.33, 70.20, 305.57°)
OKLaboklab(42.57% 0.051 -0.1639)
OKLCHoklch(42.57% 0.172 287.3)
XYZxyz(11.1594, 6.7917, 36.3129)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A5 #8BA534
analogous
#3453A5 #4E34A5 #8634A5
triadic
#4E34A5 #A54E34 #34A54E
tetradic
#4E34A5 #A53453 #8BA534 #34A586
square
#4E34A5 #A53453 #8BA534 #34A586
split-complementary
#4E34A5 #A58634 #53A534
monochromatic
#221748 #382576 #4E34A5 #6B4FC7 #927DD6

Accessibility & contrast

On white

8.90
#4E34A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E34A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A5
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A5#FFFFFF#000000##FFFFFF
##4E34A51.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#2D5168
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e34a5;
/* rgb */ color: rgb(78, 52, 165);
/* oklch */ color: oklch(42.6% 0.172 287.3);
Tailwind
colors: {
  custom: {
    50: '#886dc1',
    500: '#4e34a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a5;
$custom-light: #886dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a5",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 253.805,
    "s": 52.074,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42567,
    "c": 0.17169,
    "h": 287.3
  },
  "luminance": 0.06792
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E34A5

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

Preview Lab → · Contrast checker → · Palette generator →

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