#4E34A1#4E34A1

#4E34A1 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.2% C 0.167 H 288.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#4E34A1
RGBrgb(78, 52, 161)
HSLhsl(254, 51%, 42%)
HSVhsv(254, 68%, 63%)
CMYKcmyk(51.6%, 67.7%, 0%, 36.9%)
CIE-LABlab(30.99, 39.63, -55.23)
CIE-LCHlch(30.99, 67.98, 305.66°)
OKLaboklab(42.22% 0.0516 -0.1584)
OKLCHoklch(42.22% 0.167 288)
XYZxyz(10.8010, 6.6484, 34.4255)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E34A1 #87A134
analogous
#3451A1 #4E34A1 #8534A1
triadic
#4E34A1 #A14E34 #34A14E
tetradic
#4E34A1 #A13451 #87A134 #34A185
square
#4E34A1 #A13451 #87A134 #34A185
split-complementary
#4E34A1 #A18534 #51A134
monochromatic
#211644 #382573 #4E34A1 #6A4DC5 #907BD4

Accessibility & contrast

On white

9.01
#4E34A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4E34A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E34A1
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E34A1#FFFFFF#000000##FFFFFF
##4E34A11.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#304F66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e34a1;
/* rgb */ color: rgb(78, 52, 161);
/* oklch */ color: oklch(42.2% 0.167 288.0);
Tailwind
colors: {
  custom: {
    50: '#876dbe',
    500: '#4e34a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e34a1;
$custom-light: #876dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e34a1",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 161
  },
  "hsl": {
    "h": 254.312,
    "s": 51.174,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42222,
    "c": 0.16664,
    "h": 288
  },
  "luminance": 0.06649
}

Semantic roles & 50–950 ramp

primary
#4E34A1
secondary
#ACBD74
accent
#DB4DB9
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E34A1

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

Preview Lab → · Contrast checker → · Palette generator →

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