#4E35A5#4E35A5

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

Color values

HEX#4E35A5
RGBrgb(78, 53, 165)
HSLhsl(253, 51%, 43%)
HSVhsv(253, 68%, 65%)
CMYKcmyk(52.7%, 67.9%, 0%, 35.3%)
CIE-LABlab(31.54, 40.26, -56.76)
CIE-LCHlch(31.54, 69.59, 305.35°)
OKLaboklab(42.72% 0.0501 -0.1629)
OKLCHoklch(42.72% 0.17 287.1)
XYZxyz(11.2045, 6.8820, 36.3280)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35A5 #8CA535
analogous
#3554A5 #4E35A5 #8635A5
triadic
#4E35A5 #A54E35 #35A54E
tetradic
#4E35A5 #A53554 #8CA535 #35A586
square
#4E35A5 #A53554 #8CA535 #35A586
split-complementary
#4E35A5 #A58635 #54A535
monochromatic
#221748 #382677 #4E35A5 #6B50C7 #927FD6

Accessibility & contrast

On white

8.84
#4E35A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4E35A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E35A5
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35A5#FFFFFF#000000##FFFFFF
##4E35A51.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e35a5;
/* rgb */ color: rgb(78, 53, 165);
/* oklch */ color: oklch(42.7% 0.170 287.1);
Tailwind
colors: {
  custom: {
    50: '#886ec1',
    500: '#4e35a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e35a5;
$custom-light: #886ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35a5",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 165
  },
  "hsl": {
    "h": 253.393,
    "s": 51.376,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42717,
    "c": 0.17045,
    "h": 287.1
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#4E35A5
secondary
#AFBF77
accent
#DB4DBB
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E35A5

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

Preview Lab → · Contrast checker → · Palette generator →

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