#4E35A4#4E35A4

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

Color values

HEX#4E35A4
RGBrgb(78, 53, 164)
HSLhsl(254, 51%, 43%)
HSVhsv(254, 68%, 64%)
CMYKcmyk(52.4%, 67.7%, 0%, 35.7%)
CIE-LABlab(31.45, 39.96, -56.29)
CIE-LCHlch(31.45, 69.03, 305.37°)
OKLaboklab(42.63% 0.0502 -0.1616)
OKLCHoklch(42.63% 0.169 287.3)
XYZxyz(11.1139, 6.8457, 35.8505)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35A4 #8BA435
analogous
#3553A4 #4E35A4 #8635A4
triadic
#4E35A4 #A44E35 #35A44E
tetradic
#4E35A4 #A43553 #8BA435 #35A486
square
#4E35A4 #A43553 #8BA435 #35A486
split-complementary
#4E35A4 #A48635 #53A435
monochromatic
#221747 #382676 #4E35A4 #6B50C6 #927ED5

Accessibility & contrast

On white

8.86
#4E35A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E35A4
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35A4#FFFFFF#000000##FFFFFF
##4E35A41.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e35a4;
/* rgb */ color: rgb(78, 53, 164);
/* oklch */ color: oklch(42.6% 0.169 287.3);
Tailwind
colors: {
  custom: {
    50: '#886ec0',
    500: '#4e35a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e35a4;
$custom-light: #886ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35a4",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 164
  },
  "hsl": {
    "h": 253.514,
    "s": 51.152,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42631,
    "c": 0.16919,
    "h": 287.3
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#4E35A4
secondary
#AEBE76
accent
#DB4DBB
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E35A4

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

Preview Lab → · Contrast checker → · Palette generator →

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