#4E35A1#4E35A1

#4E35A1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.165 H 287.8°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4E35A1
RGBrgb(78, 53, 161)
HSLhsl(254, 50%, 42%)
HSVhsv(254, 67%, 63%)
CMYKcmyk(51.6%, 67.1%, 0%, 36.9%)
CIE-LABlab(31.20, 39.05, -54.88)
CIE-LCHlch(31.20, 67.36, 305.43°)
OKLaboklab(42.38% 0.0506 -0.1574)
OKLCHoklch(42.38% 0.165 287.8)
XYZxyz(10.8461, 6.7386, 34.4405)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E35A1 #88A135
analogous
#3552A1 #4E35A1 #8435A1
triadic
#4E35A1 #A14E35 #35A14E
tetradic
#4E35A1 #A13552 #88A135 #35A184
square
#4E35A1 #A13552 #88A135 #35A184
split-complementary
#4E35A1 #A18435 #52A135
monochromatic
#211745 #382673 #4E35A1 #6A4EC5 #917CD4

Accessibility & contrast

On white

8.94
#4E35A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E35A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E35A1
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E35A1#FFFFFF#000000##FFFFFF
##4E35A11.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#00479F
Tritanopia (blue-blind)
#305066
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e35a1;
/* rgb */ color: rgb(78, 53, 161);
/* oklch */ color: oklch(42.4% 0.165 287.8);
Tailwind
colors: {
  custom: {
    50: '#876ebe',
    500: '#4e35a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e35a1;
$custom-light: #876ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e35a1",
  "rgb": {
    "r": 78,
    "g": 53,
    "b": 161
  },
  "hsl": {
    "h": 253.889,
    "s": 50.467,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42375,
    "c": 0.16537,
    "h": 287.8
  },
  "luminance": 0.06739
}

Semantic roles & 50–950 ramp

primary
#4E35A1
secondary
#ACBD75
accent
#DA4EBA
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E35A1

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

Preview Lab → · Contrast checker → · Palette generator →

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