#4E35A7#4E35A7

#4E35A7 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.9% C 0.173 H 286.7°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#4E35A7
RGBrgb(78, 53, 167)
HSLhsl(253, 52%, 43%)
HSVhsv(253, 68%, 65%)
CMYKcmyk(53.3%, 68.3%, 0%, 34.5%)
CIE-LABlab(31.70, 40.87, -57.68)
CIE-LCHlch(31.70, 70.69, 305.32°)
OKLaboklab(42.89% 0.0498 -0.1657)
OKLCHoklch(42.89% 0.173 286.7)
XYZxyz(11.3880, 6.9553, 37.2942)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35A7 #8EA735
analogous
#3555A7 #4E35A7 #8735A7
triadic
#4E35A7 #A74E35 #35A74E
tetradic
#4E35A7 #A73555 #8EA735 #35A787
square
#4E35A7 #A73555 #8EA735 #35A787
split-complementary
#4E35A7 #A78735 #55A735
monochromatic
#23184A #382679 #4E35A7 #6B51C8 #9380D7

Accessibility & contrast

On white

8.78
#4E35A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#4E35A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E35A7
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35A7#FFFFFF#000000##FFFFFF
##4E35A71.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#2B5269
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e35a7;
/* rgb */ color: rgb(78, 53, 167);
/* oklch */ color: oklch(42.9% 0.173 286.7);
Tailwind
colors: {
  custom: {
    50: '#886ec2',
    500: '#4e35a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e35a7;
$custom-light: #886ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35a7",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 167
  },
  "hsl": {
    "h": 253.158,
    "s": 51.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42891,
    "c": 0.17298,
    "h": 286.7
  },
  "luminance": 0.06956
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E35A7

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

Preview Lab → · Contrast checker → · Palette generator →

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