#4E35A6#4E35A6

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

Color values

HEX#4E35A6
RGBrgb(78, 53, 166)
HSLhsl(253, 52%, 43%)
HSVhsv(253, 68%, 65%)
CMYKcmyk(53%, 68.1%, 0%, 34.9%)
CIE-LABlab(31.62, 40.57, -57.22)
CIE-LCHlch(31.62, 70.14, 305.33°)
OKLaboklab(42.8% 0.0499 -0.1643)
OKLCHoklch(42.8% 0.172 286.9)
XYZxyz(11.2959, 6.9185, 36.8092)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35A6 #8DA635
analogous
#3555A6 #4E35A6 #8635A6
triadic
#4E35A6 #A64E35 #35A64E
tetradic
#4E35A6 #A63555 #8DA635 #35A686
square
#4E35A6 #A63555 #8DA635 #35A686
split-complementary
#4E35A6 #A68635 #55A635
monochromatic
#221749 #382678 #4E35A6 #6B51C7 #927FD6

Accessibility & contrast

On white

8.81
#4E35A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E35A6
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35A6#FFFFFF#000000##FFFFFF
##4E35A61.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#0047A4
Tritanopia (blue-blind)
#2C5269
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e35a6;
/* rgb */ color: rgb(78, 53, 166);
/* oklch */ color: oklch(42.8% 0.172 286.9);
Tailwind
colors: {
  custom: {
    50: '#886ec1',
    500: '#4e35a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e35a6;
$custom-light: #886ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35a6",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 166
  },
  "hsl": {
    "h": 253.274,
    "s": 51.598,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42804,
    "c": 0.17172,
    "h": 286.9
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E35A6

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

Preview Lab → · Contrast checker → · Palette generator →

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